Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbStore ¶
type DbStore interface {
// Stable store functions
Get(key []byte) ([]byte, error)
Set(key, val []byte) error
SetUint64(key []byte, val uint64) error
GetUint64(key []byte) (uint64, error)
// Log store functions
FirstIndex() (uint64, error)
LastIndex() (uint64, error)
GetLog(index uint64, log *raft.Log) error
StoreLog(log *raft.Log) error
StoreLogs(logs []*raft.Log) error
DeleteRange(min, max uint64) error
Close() error
}
Click to show internal directories.
Click to hide internal directories.