incident v0.3.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(module, map) View Source
project(module(), map()) :: {:ok | :error, map()}

Insert or updates a projection in the Projection Store.

Receives the projection type and the data for the projection.