raftbadger

package module
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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
y or Y : Canonical URL
⌂ 换网址