brook v0.1.1 Brook.Event.Serializer protocol

The protocol for standard serialization of Elixir structs to an in-transit encoding format before sending on the Brook event stream.

Brook drivers are expected to implement a default serializer for converting to the given encoding, leaving the client the option to implement a custom serializer for specific struct types.

Link to this section Summary

Functions

Convert the supplied Elixir term to an encoded term wrapped in an :ok tuple.

Link to this section Types

Link to this type

reason()
reason() :: term()

Link to this type

type()
type() :: atom()

Link to this section Functions

Link to this function

serialize(data)

Convert the supplied Elixir term to an encoded term wrapped in an :ok tuple.