memory

package
v0.0.0-...-8dc85f3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DBName = "memory"

Variables

This section is empty.

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) 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) (*persistencev1.SnapshotRecord, 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()

Jump to

Keyboard shortcuts

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