boltdb

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable bool   `env:"BOLTDB_STORAGE_ENABLE" yaml:"enable"`
	File   string `env:"BOLTDB_STORAGE_FILE" default:"eventstore.db" yaml:"file"`
}

type Storage

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

func NewBoltDBEventStorage

func NewBoltDBEventStorage(l *logrus.Entry, cfg Config) *Storage

func (*Storage) Close

func (p *Storage) Close() error

func (*Storage) Load

func (p *Storage) Load(a eventsourcing.Aggregate) error

func (*Storage) Name

func (p *Storage) Name() string

func (*Storage) Upsert

func (p *Storage) Upsert(a eventsourcing.Aggregate) error

Jump to

Keyboard shortcuts

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