commanded v0.2.0 Commanded.Aggregates.Aggregate

Process to provide access to a single event sourced aggregate root.

Allows execution of commands against an aggregate and handles persistence of events to the event store.

Summary

Functions

Access the aggregate's state

Execute the given command against the aggregate

Execute the given command, using the provided handler, against the current aggregate state

Load any existing events for the aggregate from storage and repopulate the state using those events

Functions

aggregate_state(server)

Access the aggregate's state

execute(server, command, handler)

Execute the given command against the aggregate

handle_call(msg, from, state)

Execute the given command, using the provided handler, against the current aggregate state

handle_cast(msg, state)

Load any existing events for the aggregate from storage and repopulate the state using those events

start_link(aggregate_module, aggregate_uuid)