Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateStore ¶
type AggregateStore struct {
// contains filtered or unexported fields
}
AggregateStore loads and stores aggregates.
func NewStore ¶
func NewStore(eventStore x.EventStore, aggregateFactory cqrs.AggregateFactory) *AggregateStore
NewStore creates a new instance of AggregateStore.
func (*AggregateStore) Load ¶
func (s *AggregateStore) Load(aggregateID cqrs.Identifier, aggregateType string) (cqrs.ESAggregate, error)
Load implements cqrs.AggregateStore interface.
func (*AggregateStore) Store ¶
func (s *AggregateStore) Store(agg cqrs.ESAggregate, events ...cqrs.DomainEvent) error
Store implements cqrs.AggregateStore interface.
Click to show internal directories.
Click to hide internal directories.