incident v0.2.0 Incident.EventHandler behaviour View Source
Defines the API for an Event Handler.
Link to this section Summary
Callbacks
Listens to a persisted event and an aggregate state. You can use the aggregate to apply the persisted event and its state to get a new state, and to project new data into the projection store.
Link to this section Callbacks
Link to this callback
listen(arg1, map)
View Source
listen(arg1, map)
View Source
listen(Incident.Event.PersistedEvent.t(), map()) :: :ok
listen(Incident.Event.PersistedEvent.t(), map()) :: :ok
Listens to a persisted event and an aggregate state. You can use the aggregate to apply the persisted event and its state to get a new state, and to project new data into the projection store.