Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Aggregate ¶
type Aggregate interface {
Load(rangedb.RecordIterator)
Handle(Command) []rangedb.Event
CommandTypes() []string
}
Aggregate defines the interface for a CQRS aggregate, or Unit of Certainty.
type Command ¶
type Command interface {
rangedb.AggregateMessage
CommandType() string
}
Command defines a CQRS command.
type CommandDispatcher ¶
CommandDispatcher defines the interface for dispatching a cqrs.Command.
type Option ¶
type Option func(*cqrs)
Option defines functional option parameters for App.
func WithAggregates ¶
WithAggregates is a functional option to inject an aggregate command handler.
func WithLogger ¶
WithLogger is a functional option to inject a Logger.
Click to show internal directories.
Click to hide internal directories.