Documentation ¶
Index ¶
- func NewTeeLogDB(nhConfig config.NodeHostConfig, cb config.LogDBCallback, dirs []string, ...) (raftio.ILogDB, error)
- type LogDB
- func (t *LogDB) BinaryFormat() uint32
- func (t *LogDB) Close() error
- func (t *LogDB) CompactEntriesTo(clusterID uint64, nodeID uint64, index uint64) (<-chan struct{}, error)
- func (t *LogDB) DeleteSnapshot(clusterID uint64, nodeID uint64, index uint64) error
- func (t *LogDB) GetBootstrapInfo(clusterID uint64, nodeID uint64) (pb.Bootstrap, error)
- func (t *LogDB) ImportSnapshot(ss pb.Snapshot, nodeID uint64) error
- func (t *LogDB) IterateEntries(ents []pb.Entry, size uint64, clusterID uint64, nodeID uint64, low uint64, ...) ([]pb.Entry, uint64, error)
- func (t *LogDB) ListNodeInfo() ([]raftio.NodeInfo, error)
- func (t *LogDB) ListSnapshots(clusterID uint64, nodeID uint64, index uint64) ([]pb.Snapshot, error)
- func (t *LogDB) Name() string
- func (t *LogDB) ReadRaftState(clusterID uint64, nodeID uint64, lastIndex uint64) (raftio.RaftState, error)
- func (t *LogDB) RemoveEntriesTo(clusterID uint64, nodeID uint64, index uint64) error
- func (t *LogDB) RemoveNodeData(clusterID uint64, nodeID uint64) error
- func (t *LogDB) SaveBootstrapInfo(clusterID uint64, nodeID uint64, bootstrap pb.Bootstrap) error
- func (t *LogDB) SaveRaftState(updates []pb.Update, shardID uint64) error
- func (t *LogDB) SaveSnapshots(updates []pb.Update) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTeeLogDB ¶
func NewTeeLogDB(nhConfig config.NodeHostConfig, cb config.LogDBCallback, dirs []string, wals []string, fs vfs.IFS) (raftio.ILogDB, error)
NewTeeLogDB creates a new LogDB instance.
Types ¶
type LogDB ¶
type LogDB struct {
// contains filtered or unexported fields
}
LogDB is a special LogDB module used for testing purposes.
func (*LogDB) CompactEntriesTo ¶
func (t *LogDB) CompactEntriesTo(clusterID uint64, nodeID uint64, index uint64) (<-chan struct{}, error)
CompactEntriesTo ...
func (*LogDB) DeleteSnapshot ¶
DeleteSnapshot ...
func (*LogDB) GetBootstrapInfo ¶
GetBootstrapInfo ...
func (*LogDB) ImportSnapshot ¶
ImportSnapshot ...
func (*LogDB) IterateEntries ¶
func (t *LogDB) IterateEntries(ents []pb.Entry, size uint64, clusterID uint64, nodeID uint64, low uint64, high uint64, maxSize uint64) ([]pb.Entry, uint64, error)
IterateEntries ...
func (*LogDB) ListNodeInfo ¶
ListNodeInfo ...
func (*LogDB) ListSnapshots ¶
ListSnapshots ...
func (*LogDB) ReadRaftState ¶
func (t *LogDB) ReadRaftState(clusterID uint64, nodeID uint64, lastIndex uint64) (raftio.RaftState, error)
ReadRaftState ...
func (*LogDB) RemoveEntriesTo ¶
RemoveEntriesTo ...
func (*LogDB) RemoveNodeData ¶
RemoveNodeData ...
func (*LogDB) SaveBootstrapInfo ¶
SaveBootstrapInfo ...
func (*LogDB) SaveRaftState ¶
SaveRaftState ...
Click to show internal directories.
Click to hide internal directories.