bbolt

package module
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BBolt

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

BBolt is the eventstore handler

func MustOpenBBolt

func MustOpenBBolt(dbFile string) *BBolt

MustOpenBBolt opens the event stream found in the given file. If the file is not found it will be created and initialized. Will panic if it has problems persisting the changes to the filesystem.

func (*BBolt) All added in v0.4.0

func (e *BBolt) All(start uint64) (core.Iterator, error)

All iterate over event in GlobalEvents order

func (*BBolt) Close

func (e *BBolt) Close() error

Close closes the event stream and the underlying database

func (*BBolt) Get

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

Get aggregate events

func (*BBolt) Save

func (e *BBolt) 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