commanded v0.2.0 Commanded.Commands.Handler behaviour

Summary

Callbacks

Apply the given command to the event sourced entity state, returning state struct containing the entity's id, all applied events and current version

Callbacks

handle(state, command)

Specs

handle(state :: EventSourced.Entity, command :: %{}) :: EventSourced.Entity

Apply the given command to the event sourced entity state, returning state struct containing the entity's id, all applied events and current version