View Source Pods.Encoder behaviour (Elixir Pods v1.0.0)

Encodes messages to send to the pod process

Summary

Callbacks

Link to this callback

encode(message, encoding)

View Source
@callback encode(message :: term(), encoding :: String.t()) :: {:ok | :error, String.t()}
Link to this callback

encode!(message, encoding)

View Source
@callback encode!(message :: term(), encoding :: String.t()) :: String.t()