ibento_event_store v0.0.4 Ibento.EventStore behaviour View Source

Link to this section Summary

Link to this section Callbacks

Link to this callback put_event(input) View Source (optional)
put_event(input :: term()) :: {:ok, term()} | {:error, term(), term(), term()}
Link to this callback put_event_input(input) View Source (optional)
put_event_input(input :: term()) ::
  {:ok, term()} | :error | {:error, Ecto.Changeset.t()}
Link to this callback put_events(input) View Source (optional)
put_events(input :: term()) :: {:ok, term()} | {:error, term(), term(), term()}
Link to this callback put_events_input(input) View Source (optional)
put_events_input(input :: term()) ::
  {:ok, term()} | :error | {:error, Ecto.Changeset.t()}
Link to this callback read_event_output(output) View Source (optional)
read_event_output(output :: term()) ::
  {:ok, Ibento.EventStore.Event.t()} | :error | {:error, term()}
Link to this callback resolve_event_type(type) View Source (optional)
resolve_event_type(type :: binary()) ::
  {:ok, module()} | :error | {:error, term()}