eventstore v0.10.1 EventStore.Serializer behaviour

Specification of a serializer to convert between an Elixir term and binary data.

Link to this section Summary

Callbacks

Deserialize the given binary data to the corresponding term

Serialize the given term to a binary representation

Link to this section Types

Link to this type config()
config() :: Keyword.t
Link to this type t()
t() :: module

Link to this section Callbacks

Link to this callback deserialize(binary, config)
deserialize(binary, config) :: any

Deserialize the given binary data to the corresponding term

Link to this callback serialize(any)
serialize(any) :: binary

Serialize the given term to a binary representation