Commanded v0.14.0-rc.0 API Reference
Modules
Use Commanded to build your own Elixir applications following the CQRS/ES pattern
Aggregate is a GenServer
process used to provide access to an
instance of an event sourced aggregate root. It allows execution of commands
against an aggregate instance, and handles persistence of created events to
the configured event store
The Commanded.Aggregates.AggregateLifespan
behaviour is used to control an aggregate lifespan
The default implementation of the Commanded.Aggregates.AggregateLifespan
behaviour
Defines the arguments used to execute a command for an aggregate
Supervises Commanded.Aggregates.Aggregate
instance processes
Provides test assertion and wait for event functions to help test applications built using Commanded
Defines the behaviour a command handler must implement to support command dispatch
Command routing macro to allow configuration of each command to its command handler
Defines the behaviour an event handler must implement and provides a convenience macro that implements the behaviour, allowing you to handle only the events you are interested in processing
Defines the behaviour to be implemented by an event store adapter to be used by Commanded
An in-memory event store adapter useful for testing as no persistence provided
EventData contains the data for a single event before being persisted to storage
Contains the persisted stream identity, type, data, and metadata for a single event
Specification of a serializer to convert between an Elixir term and binary data
Snapshot data
Specification to convert between an Elixir struct and a corresponding string type
Middleware provides an extension point to add functions that you want to be called for every command the router dispatches
A Commanded.Middleware
that blocks after successful command dispatch until
the requested dispatch consistency has been met
A Commanded.Middleware
that extracts the target aggregate’s identity from the command
A Commanded.Middleware
that logs each stage of the command dispatch using the Elixir Logger
Pipeline is a struct used as an argument in the callback functions of modules implementing the Commanded.Middleware
behaviour
Behaviour to define a process manager
A serializer that uses the JSON format
A type provider that uses the Elixir module name