esdb

package module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

README

esdb event store

The esdb event store is supporting the EventStoreDB database.

It's based on the module github.com/EventStore/EventStore-Client-Go/v3 for reading and writing events.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ESDB

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

ESDB is the event store handler

func Open

func Open(client *esdb.Client, jsonSerializer bool) *ESDB

Open binds the event store db client

func (*ESDB) Get

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

func (*ESDB) Save

func (es *ESDB) 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