eventstore

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStore

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

EventStore Adding an arbitrary 1 all revisions so revision 0 is reserved for the null condition.

func Init

func Init() (es EventStore, err error)

func (EventStore) Store

func (es EventStore) Store(streamName string, ctx context.Context, events ...store.Event) (position uint64, err error)

func (EventStore) Stream

func (es EventStore) Stream(streamName string, from store.StreamPosition, ctx context.Context) (out <-chan store.Event, err error)

Jump to

Keyboard shortcuts

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