Documentation ¶
Index ¶
- Variables
- type BadgerStore
- func (s *BadgerStore) Close() error
- func (s *BadgerStore) DeleteRange(min, max uint64) error
- func (s *BadgerStore) FirstIndex() (uint64, error)
- func (s *BadgerStore) Get(k []byte) ([]byte, error)
- func (s *BadgerStore) GetLog(idx uint64, log *raft.Log) error
- func (s *BadgerStore) GetUint64(key []byte) (uint64, error)
- func (s *BadgerStore) LastIndex() (uint64, error)
- func (s *BadgerStore) Set(k, v []byte) error
- func (s *BadgerStore) SetUint64(key []byte, val uint64) error
- func (s *BadgerStore) StoreLog(log *raft.Log) error
- func (s *BadgerStore) StoreLogs(logs []*raft.Log) error
- type LogStableStore
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 (*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) LastIndex ¶
func (s *BadgerStore) LastIndex() (uint64, error)
func (*BadgerStore) Set ¶
func (s *BadgerStore) Set(k, v []byte) error
type LogStableStore ¶
type LogStableStore interface { raft.LogStore raft.StableStore }
Click to show internal directories.
Click to hide internal directories.