API Reference incident v0.6.2

modules

Modules

An aggregate is the unit of business logic in the domain. The business logic is used to handle commands and also to apply events to change the aggregate state.

Defines an Aggregate State macro that receives the aggregate module and an initial state.

Defines the API for a Command.

Defines a Command Handler that receives a command to

Defines the API for an Event Handler.

Defines the API to interact with the Event Store.

Defines the API for an Event Store adapter.

Implements an in-memory Event Store using Agents.

Defines the data structure for an aggregate lock for the in memory adapter.

Defines the data structure for any event for the in memory adapter.

Manages aggregate locks for the InMemory adapter.

Implements an Event Store using Postgres through Ecto.

Defines the data structure for an aggregate lock for the Postgres adapter.

Defines the data structure for any event for the Postgres adapter.

Manages aggregate locks for the Postgres adapter.

Defines the API to interact with the Projection Store.

Defines the API for a Projection Store adapter.

Implements an in-memory Projection Store using Agents.

Implements a Projection Store using Postgres through Ecto.

mix-tasks

Mix Tasks

This task will generate some basic setup when using PostgresAdapter.