raftstore

package
v0.0.0-...-a779712 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrationStats

type MigrationStats struct {
	Logs       uint64
	StableKeys uint64
}

func MigrateLegacyBoltDB

func MigrateLegacyBoltDB(logsPath, stablePath, destDir string) (*MigrationStats, error)

type PebbleStore

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

func NewPebbleStore

func NewPebbleStore(dir string) (*PebbleStore, error)

func (*PebbleStore) Close

func (s *PebbleStore) Close() error

func (*PebbleStore) DeleteRange

func (s *PebbleStore) DeleteRange(min, max uint64) error

func (*PebbleStore) FirstIndex

func (s *PebbleStore) FirstIndex() (uint64, error)

func (*PebbleStore) Get

func (s *PebbleStore) Get(key []byte) ([]byte, error)

func (*PebbleStore) GetLog

func (s *PebbleStore) GetLog(index uint64, out *raft.Log) error

func (*PebbleStore) GetUint64

func (s *PebbleStore) GetUint64(key []byte) (uint64, error)

func (*PebbleStore) LastIndex

func (s *PebbleStore) LastIndex() (uint64, error)

func (*PebbleStore) Set

func (s *PebbleStore) Set(key []byte, value []byte) error

func (*PebbleStore) SetUint64

func (s *PebbleStore) SetUint64(key []byte, value uint64) error

func (*PebbleStore) StoreLog

func (s *PebbleStore) StoreLog(log *raft.Log) error

func (*PebbleStore) StoreLogs

func (s *PebbleStore) StoreLogs(logs []*raft.Log) error

Jump to

Keyboard shortcuts

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