cartel v0.2.3 Cartel.Message protocol

Protocol to be implemented by Cartel.Message structs

Summary

Types

t()

Struct conforming to the Cartel.Message protocol

Functions

Serializes Cartel.Message struct to binary

Returns an updated message with the new token

Types

t :: struct

Struct conforming to the Cartel.Message protocol

Functions

serialize(message)

Specs

serialize(t) :: binary

Serializes Cartel.Message struct to binary

update_token(message, token)

Specs

update_token(t, String.t) :: t

Returns an updated message with the new token