es_postgres

package
v0.0.0-...-36d8597 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 13 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 Events

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

type Store

type Store struct {
	Aggregates
	Events
	// contains filtered or unexported fields
}

func (*Store) GetAggregateWithoutSnapshot

func (s *Store) GetAggregateWithoutSnapshot(ctx context.Context) ([]*eventsourcing.BaseAggregate, error)

GetAggregateWithoutSnapshot - get aggregates without a snapshot

func (*Store) Init

func (s *Store) Init(ctx context.Context, db *db.Store) error

func (*Store) Load

func (s *Store) Load(ctx context.Context, aggregateID string) (*eventsourcing.Snapshot, []*eventsourcing.Event, error)

func (*Store) SafeSave

func (s *Store) SafeSave(ctx context.Context, events []*eventsourcing.Event) error

func (*Store) Save

func (s *Store) Save(ctx context.Context, events []*eventsourcing.Event) error

func (*Store) SaveSnapshot

func (s *Store) SaveSnapshot(ctx context.Context, snapshot *eventsourcing.Snapshot) error

Jump to

Keyboard shortcuts

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