Documentation ¶
Index ¶
- Variables
- type EventStore
- func (s *EventStore) FindAggregatesIds(ctx context.Context, filter interface{}) ([]string, error)
- func (s *EventStore) Load(ctx context.Context, id string) ([]eh.Event, error)
- func (s *EventStore) RenameEvent(ctx context.Context, from, to eh.EventType) error
- func (s *EventStore) Replace(ctx context.Context, event eh.Event) error
- func (s *EventStore) Save(ctx context.Context, events []eh.Event, originalVersion int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCouldNotSaveAggregate = errors.New("could not save aggregate")
ErrCouldNotSaveAggregate is when an aggregate could not be saved.
Functions ¶
This section is empty.
Types ¶
type EventStore ¶
type EventStore struct {
// contains filtered or unexported fields
}
EventStore implements EventStore as an in memory structure.
func NewEventStore ¶
func NewEventStore() *EventStore
NewEventStore creates a new EventStore using memory as storage.
func (*EventStore) FindAggregatesIds ¶ added in v0.5.3
func (s *EventStore) FindAggregatesIds(ctx context.Context, filter interface{}) ([]string, error)
FindAggregatesIds implements the FindAggregatesIds method of the eventhorizon.EventStoreMaintainer interface
func (*EventStore) RenameEvent ¶
RenameEvent implements the RenameEvent method of the eventhorizon.EventStore interface.
Click to show internal directories.
Click to hide internal directories.