Documentation ¶
Index ¶
- type Aggregates
- type EventStore
- func (e *EventStore) GetAggregateWithoutSnapshot(ctx context.Context) ([]*eventsourcing.BaseAggregate, error)
- func (e *EventStore) Load(ctx context.Context, aggregateID string) (*eventsourcing.Snapshot, []*eventsourcing.Event, error)
- func (e *EventStore) SafeSave(ctx context.Context, events []*eventsourcing.Event) error
- func (e *EventStore) Save(ctx context.Context, events []*eventsourcing.Event) error
- func (e *EventStore) SaveSnapshot(ctx context.Context, snapshot *eventsourcing.Snapshot) error
- type Events
- type IncorrectUpdatedBillingError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregates ¶
type Aggregates interface {
// contains filtered or unexported methods
}
type EventStore ¶
type EventStore struct { Aggregates Events // contains filtered or unexported fields }
func (*EventStore) GetAggregateWithoutSnapshot ¶
func (e *EventStore) GetAggregateWithoutSnapshot(ctx context.Context) ([]*eventsourcing.BaseAggregate, error)
GetAggregateWithoutSnapshot - get aggregates without a snapshot
func (*EventStore) Load ¶
func (e *EventStore) Load(ctx context.Context, aggregateID string) (*eventsourcing.Snapshot, []*eventsourcing.Event, error)
func (*EventStore) SafeSave ¶
func (e *EventStore) SafeSave(ctx context.Context, events []*eventsourcing.Event) error
func (*EventStore) Save ¶
func (e *EventStore) Save(ctx context.Context, events []*eventsourcing.Event) error
func (*EventStore) SaveSnapshot ¶
func (e *EventStore) SaveSnapshot(ctx context.Context, snapshot *eventsourcing.Snapshot) error
SaveSnapshot - save snapshot
type IncorrectUpdatedBillingError ¶
func (*IncorrectUpdatedBillingError) Error ¶
func (e *IncorrectUpdatedBillingError) Error() string
Click to show internal directories.
Click to hide internal directories.