bbolt

package
v0.0.0-...-a71f0cf Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DBName = "bbolt"

Variables

View Source
var ErrNotFound = fmt.Errorf("not found")

Functions

func NewStore

func NewStore(system *actor.ActorSystem, uri *url.URL) (persistence2.Store, error)

Types

type Store

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

func (*Store) Close

func (s *Store) Close() error

func (*Store) DeleteEvents

func (s *Store) DeleteEvents(_ string, _ int)

func (*Store) DeleteSnapshots

func (s *Store) DeleteSnapshots(_ string, _ int)

func (*Store) GetEvents

func (s *Store) GetEvents(actorName string, eventIndexStart int, eventIndexEnd int, callback func(e *persistencev1.EventRecord))

func (*Store) GetSnapshot

func (s *Store) GetSnapshot(actorName string) (record *persistencev1.SnapshotRecord, err error)

func (*Store) GetSnapshotInterval

func (s *Store) GetSnapshotInterval() int

func (*Store) PersistEvent

func (s *Store) PersistEvent(actorName string, record *persistencev1.EventRecord)

func (*Store) PersistSnapshot

func (s *Store) PersistSnapshot(actorName string, record *persistencev1.SnapshotRecord)

func (*Store) Restart

func (s *Store) Restart()

func (*Store) Subscribe

func (s *Store) Subscribe(pid *actor.PID, last *string, predicate stream.EventPredicate) stream.SubscriptionID

func (*Store) Unsubscribe

func (s *Store) Unsubscribe(_ stream.SubscriptionID)

Jump to

Keyboard shortcuts

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