es_postgres

package
v0.0.0-...-eec1c75 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 New

func New(ctx context.Context, store db.DB) (*EventStore, error)

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 Events

type Events interface {
	// contains filtered or unexported methods
}

type IncorrectUpdatedBillingError

type IncorrectUpdatedBillingError struct {
	Err     error
	Updated int64
}

func (*IncorrectUpdatedBillingError) Error

Jump to

Keyboard shortcuts

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