incident v0.2.0 Incident.ProjectionStore.Adapter behaviour View Source
Defines the API for a Projection Store adapter.
Link to this section Summary
Callbacks
Returns all projections from a specific projection type from the Projection Store.
Insert or updates a projection in the Projection Store.
Link to this section Callbacks
Link to this callback
all(atom)
View Source
all(atom)
View Source
all(:atom) :: list()
all(:atom) :: list()
Returns all projections from a specific projection type from the Projection Store.
Link to this callback
project(atom, map)
View Source
project(atom, map)
View Source
project(:atom, map()) :: :ok
project(:atom, map()) :: :ok
Insert or updates a projection in the Projection Store.
Receives the projection type and the data for the projection.