store

package
v0.0.0-...-1a43b3b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = errors.New("bolt: key not found")

Functions

func NewSnapshotHelper

func NewSnapshotHelper(r io.ReadCloser, eg *errgroup.Group,
	ctx context.Context, cancel context.CancelFunc) raft.FSMSnapshot

Types

type Interface

type Interface interface {
	raft.FSM

	GetCopy(key []byte) ([]byte, error)
	Read(key []byte, fn func(in []byte) error) error
}

type SnapshotHelper

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

func (*SnapshotHelper) Persist

func (s *SnapshotHelper) Persist(sink raft.SnapshotSink) error

func (*SnapshotHelper) Release

func (s *SnapshotHelper) Release()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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