aggstore

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 2 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL