Documentation
¶
Index ¶
- Variables
- func ReviewCompact(volumeDir string, node uint64, watcher func(*CompactInfo, int64)) error
- type CompactInfo
- type DB
- func (db *DB) Close()
- func (db *DB) GetApply(node uint64) (uint64, error)
- func (db *DB) GetCommit(node uint64) (uint64, error)
- func (db *DB) GetCompact(node uint64) (CompactInfo, error)
- func (db *DB) GetConfState(node uint64) (raftpb.ConfState, error)
- func (db *DB) GetHardState(node uint64) (raftpb.HardState, error)
- func (db *DB) GetRaftDetail(node uint64) (d RaftDetail, err error)
- func (db *DB) PutApply(node uint64, app uint64) error
- func (db *DB) PutCompact(node uint64, info CompactInfo) error
- func (db *DB) PutHardState(node uint64, hs raftpb.HardState) error
- type Option
- type RaftDetail
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func ReviewCompact ¶
func ReviewCompact(volumeDir string, node uint64, watcher func(*CompactInfo, int64)) error
Types ¶
type CompactInfo ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) GetCompact ¶
func (db *DB) GetCompact(node uint64) (CompactInfo, error)
func (*DB) GetRaftDetail ¶
func (db *DB) GetRaftDetail(node uint64) (d RaftDetail, err error)
func (*DB) PutCompact ¶
func (db *DB) PutCompact(node uint64, info CompactInfo) error
type RaftDetail ¶
Click to show internal directories.
Click to hide internal directories.