Documentation ¶
Index ¶
- Variables
- type Storage
- func (b *Storage) Close() error
- func (b *Storage) DeleteRange(min, max uint64) error
- func (b *Storage) FirstIndex() (uint64, error)
- func (b *Storage) Get(k []byte) ([]byte, error)
- func (b *Storage) GetLog(idx uint64, log *raft.Log) error
- func (b *Storage) GetUint64(key []byte) (uint64, error)
- func (b *Storage) LastIndex() (uint64, error)
- func (b *Storage) Set(k, v []byte) error
- func (b *Storage) SetUint64(key []byte, val uint64) error
- func (b *Storage) StoreLog(log *raft.Log) error
- func (b *Storage) StoreLogs(logs []*raft.Log) error
- func (b *Storage) Sync() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // An error indicating a given key does not exist ErrKeyNotFound = errors.New("not found") )
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) DeleteRange ¶
func (*Storage) FirstIndex ¶
Click to show internal directories.
Click to hide internal directories.