Jido.Messaging.EventOptions (Jido Messaging v1.1.0)

Copy Markdown View Source

Normalizes user-facing event option keys for messaging command and presence APIs.

Summary

Functions

Returns a keyword list containing only recognized options for the selected keyspace.

Functions

normalize(opts, keyspace \\ :event)

@spec normalize(keyword() | map() | term(), :event | :command | :presence) ::
  keyword()

Returns a keyword list containing only recognized options for the selected keyspace.

Atom keys pass through unchanged. String keys are converted to their canonical atom form when they are known for the :event, :command, or :presence keyspace.