eventstore v0.4.0 EventStore.Serializer behaviour

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

Summary

Callbacks

Deserialize the given binary data to the corresponding term

Serialize the given term to a binary representation

Types

t :: module

Callbacks

deserialize(binary, config)

Specs

deserialize(binary, config) :: any

Deserialize the given binary data to the corresponding term

serialize(any)

Specs

serialize(any) :: binary

Serialize the given term to a binary representation