bolt

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltStoreManager

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

func NewBoltStoreManager

func NewBoltStoreManager(path string) (*BoltStoreManager, error)

NewBoltStoreManager creates a new EdgeStoreManager

func (*BoltStoreManager) All

func (m *BoltStoreManager) All(start core.Version, filter fluxcore.Filter) (iter.Seq[fluxcore.Event], error)

func (*BoltStoreManager) Create

func (*BoltStoreManager) Get

func (*BoltStoreManager) List

func (*BoltStoreManager) OnCommit

type BoltSubStore

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

func (*BoltSubStore) All

func (s *BoltSubStore) All(start core.Version) (iter.Seq[core.Event], error)

All iterate over event in GlobalEvents order

func (*BoltSubStore) Append

func (s *BoltSubStore) Append(event core.Event) error

func (*BoltSubStore) Get

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

Get aggregate events

func (*BoltSubStore) Id

func (s *BoltSubStore) Id() fluxcore.StoreId

func (*BoltSubStore) LastVersion

func (s *BoltSubStore) LastVersion() core.Version

func (*BoltSubStore) Metadata

func (s *BoltSubStore) Metadata() fluxcore.Metadata

func (*BoltSubStore) Save

func (s *BoltSubStore) Save(events []core.Event) error

Save an aggregate (its events)

func (*BoltSubStore) UpdateMetadata

func (s *BoltSubStore) UpdateMetadata(metadata fluxcore.Metadata) error

Jump to

Keyboard shortcuts

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