Documentation ¶
Overview ¶
Package eventstore provides interfaces along with helper functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEventNotFound = fmt.Errorf("event not found")
ErrEventNotFound is thrown when an event is not found in the store.
Functions ¶
This section is empty.
Types ¶
type EventStore ¶
type EventStore interface { Store(ctx context.Context, events []*domain.Event) error Get(ctx context.Context, id uuid.UUID) (*domain.Event, error) FindAll(ctx context.Context) ([]*domain.Event, error) GetStream(ctx context.Context, streamID uuid.UUID, streamName string) ([]*domain.Event, error) GetStreamEventsByType(ctx context.Context, streamID uuid.UUID, streamName, eventType string) ([]*domain.Event, error) }
EventStore methods allow to save, load events and event streams
Click to show internal directories.
Click to hide internal directories.