yggdrasil v3.0.2 Yggdrasil.Transformer behaviour

Transformer behaviour. Defines how to decode and encode messages from a Yggdrasil.Channel.

Summary

Callbacks

Callback to define how to decode the messages coming from a distributor adapter

Callback to define how to encode the messages coming from a publisher adapter

Callbacks

decode(arg0, term)
decode(Yggdrasil.Channel.t, term) ::
  {:ok, term} |
  {:error, term}

Callback to define how to decode the messages coming from a distributor adapter.

encode(arg0, term)
encode(Yggdrasil.Channel.t, term) ::
  {:ok, term} |
  {:error, term}

Callback to define how to encode the messages coming from a publisher adapter.