Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAggregate = errors.New("invalid aggregate")
ErrInvalidAggregate occurs when a loaded aggregate is not an aggregate.
View Source
var ErrInvalidRepo = errors.New("invalid repo")
ErrInvalidRepo is when a dispatcher is created with a nil repo.
Functions ¶
This section is empty.
Types ¶
type AggregateStore ¶
type AggregateStore struct {
// contains filtered or unexported fields
}
AggregateStore is an aggregate store that uses a read write repo for loading and saving aggregates.
func NewAggregateStore ¶
func NewAggregateStore(repo eh.ReadWriteRepo) (*AggregateStore, error)
NewAggregateStore creates an aggregate store with a read write repo.
Click to show internal directories.
Click to hide internal directories.