memory

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: MPL-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

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

Memory is a handler for event streaming

func Create

func Create() *Memory

Create in memory event store

func (*Memory) All added in v0.5.0

func (m *Memory) All(start core.Version, count uint64) core.Fetcher

All iterate over all events in GlobalEvents order

func (*Memory) Close

func (e *Memory) Close()

Close does nothing

func (*Memory) Get

func (e *Memory) Get(ctx context.Context, id string, aggregateType string, afterVersion core.Version) (core.Iterator, error)

Get aggregate events

func (*Memory) Save

func (e *Memory) Save(events []core.Event) error

Save an aggregate (its events)

Jump to

Keyboard shortcuts

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