wal

package
v0.0.2-0...-6735cf7 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyConfStateErr error = errors.New("Empty ConfState")
)

Functions

func GetBadgerRaftId

func GetBadgerRaftId(db *badger.DB) (uint64, error)

func NewBadgerWAL

func NewBadgerWAL(db *badger.DB, groupId uuid.UUID) *badgerWAL

func NewMemoryWAL

func NewMemoryWAL() *memoryWAL

func SetBadgerRaftId

func SetBadgerRaftId(db *badger.DB, id uint64) error

Types

type WAL

type WAL interface {
	etcdRaft.Storage
	Save(raftpb.HardState, []raftpb.Entry, raftpb.Snapshot) error
	CreateSnapshot(uint64, *raftpb.ConfState, []byte) (raftpb.Snapshot, error)
	DeleteGroup() error
}

Jump to

Keyboard shortcuts

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