postgresql

package
v0.0.0-...-da8027b Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(pool *pgxpool.Pool, envelope *eventbus.Envelope) *Store

func (*Store) Append

func (c *Store) Append(ctx context.Context, sid stream.ID, st stream.Type,
	events []stream.Event, expectedVersion stream.Version,
) (err error)

func (*Store) Iter

func (c *Store) Iter(ctx context.Context, st stream.Type, fn eventstore.WalkFunc) error

func (*Store) Load

func (c *Store) Load(ctx context.Context, sid stream.ID, st stream.Type, from stream.Version) ([]stream.Event, error)

Jump to

Keyboard shortcuts

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