kurrent

package module
v0.2.0 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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator added in v0.2.0

type Iterator struct {
	Stream *kurrentdb.ReadStream
	// contains filtered or unexported fields
}

func (*Iterator) Close added in v0.2.0

func (i *Iterator) Close()

Close closes the stream

func (*Iterator) Next added in v0.2.0

func (i *Iterator) Next() bool

Next steps to the next event in the stream

func (*Iterator) Value added in v0.2.0

func (i *Iterator) Value() (core.Event, error)

Value returns the event from the stream

type Kurrent

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

Kurrent is the event store handler

func Open

func Open(client *kurrentdb.Client, jsonSerializer bool) *Kurrent

Open binds the event store db client

func (*Kurrent) Get

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

func (*Kurrent) Save

func (es *Kurrent) Save(events []core.Event) error

Save persists events to the database

Jump to

Keyboard shortcuts

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