inmemory

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: 4 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
}

func Init

func Init() (es *EventStore, err error)

func (*EventStore) Store

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

func (*EventStore) Stream

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

type Stream

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

Stream Need to add a way to not store multiple events with the same id in the same stream.

Jump to

Keyboard shortcuts

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