View Source Nats.Serializer behaviour (phoenix_pubsub_nats v0.2.1)

Summary

Types

@type opts() :: Keyword.t()
@type payload() :: term()

Callbacks

@callback decode(payload(), opts()) :: {:ok, term()} | {:error, any()}
@callback encode(payload(), opts()) :: {:ok, term()} | {:error, any()}