raftbadger

package module
Version: v0.0.0-...-0c1b1b9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: MIT Imports: 7 Imported by: 0

README

raft-badger

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type BadgerStore

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

func New

func New(opt badger.Options) (*BadgerStore, error)

func (*BadgerStore) Close

func (s *BadgerStore) Close() error

func (*BadgerStore) DeleteRange

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

func (*BadgerStore) FirstIndex

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

func (*BadgerStore) Get

func (s *BadgerStore) Get(k []byte) ([]byte, error)

func (*BadgerStore) GetLog

func (s *BadgerStore) GetLog(idx uint64, log *raft.Log) error

func (*BadgerStore) GetUint64

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

func (*BadgerStore) LastIndex

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

func (*BadgerStore) Set

func (s *BadgerStore) Set(k, v []byte) error

func (*BadgerStore) SetUint64

func (s *BadgerStore) SetUint64(key []byte, val uint64) error

func (*BadgerStore) StoreLog

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

func (*BadgerStore) StoreLogs

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

type LogStableStore

type LogStableStore interface {
	raft.LogStore
	raft.StableStore
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL