incident v0.2.0 Incident.EventStore.Adapter behaviour View Source
Defines the API for an Event Store adapter.
Link to this section Summary
Callbacks
Appends an event to the Event Store.
Receives an aggregate id and returns a list containing all persisted events from the Event Store.
Link to this section Callbacks
Link to this callback
append(map)
View Source
append(map)
View Source
append(map()) :: {:ok, Incident.Event.PersistedEvent.t()}
append(map()) :: {:ok, Incident.Event.PersistedEvent.t()}
Appends an event to the Event Store.
Link to this callback
get(arg1) View Source
Receives an aggregate id and returns a list containing all persisted events from the Event Store.