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

Returns all projections from a specific projection type from the Projection Store.

Link to this callback

project(atom, map) View Source
project(:atom, map()) :: :ok

Insert or updates a projection in the Projection Store.

Receives the projection type and the data for the projection.