View Source Yggdrasil.Transformer.Default (Yggdrasil v6.0.2)

Does not do anything to the messages and sends them as is.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Decodes a message for a channel.

Encodes a message for a channel.

Registers transformer in Registry.

Start task to register the transformer in the Registry.

Link to this section Functions

Returns a specification to start this module under a supervisor.

arg is passed as the argument to Task.start_link/1 in the :start field of the spec.

For more information, see the Supervisor module, the Supervisor.child_spec/2 function and the Supervisor.child_spec/0 type.

Link to this function

decode(channel, message)

View Source

Decodes a message for a channel.

Link to this function

encode(channel, message)

View Source

Encodes a message for a channel.

Specs

register() :: :ok

Registers transformer in Registry.

Specs

start_link(term()) :: {:ok, pid()}

Start task to register the transformer in the Registry.