cartel v0.5.0 Cartel.Message protocol

Protocol for the implementation of message formats

Summary

Types

t()

Struct conforming to the Cartel.Message protocol

Functions

Serializes the message struct for sending

Returns a copy of message with the token updated

Types

t :: struct

Struct conforming to the Cartel.Message protocol

Functions

serialize(message)

Specs

serialize(t) :: binary

Serializes the message struct for sending

update_token(message, token)

Specs

update_token(t, String.t) :: t

Returns a copy of message with the token updated