exsozu v0.3.0 ExSozu.Protocol View Source

Provides functions to work with Sōzu’s socket message format.

Link to this section Summary

Functions

Decodes a message into answers

Encodes a command

Link to this section Functions

Link to this function decode!(message) View Source
decode!(binary()) :: {[ExSozu.Command.t()], partial :: nil | binary()}

Decodes a message into answers.

Link to this function decode!(message, partial) View Source
Link to this function encode!(commands) View Source
encode!(ExSozu.Command.t() | [ExSozu.Command.t()]) :: binary()

Encodes a command.