ExESDB.Commanded.EventTypeMapper behaviour (ex_esdb_commanded v0.4.0)

Behaviour that defines how event modules are mapped to event type strings.

Implementers must provide the to_event_type/1 function that converts an event module atom to a string representation.

Summary

Types

t()

@type t() :: module()

Callbacks

to_event_type(event_module)

@callback to_event_type(event_module :: module()) :: String.t()