Documentation ¶
Index ¶
- type LogStore
- func (s *LogStore) Close() error
- func (s *LogStore) DeleteRange(min, max uint64) error
- func (s *LogStore) FirstIndex() (uint64, error)
- func (s *LogStore) GetLog(index uint64, log *raft.Log) error
- func (s *LogStore) LastIndex() (uint64, error)
- func (s *LogStore) StoreLog(log *raft.Log) error
- func (s *LogStore) StoreLogs(logs []*raft.Log) error
- func (s *LogStore) Sync()
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogStore ¶
type LogStore struct {
// contains filtered or unexported fields
}
LogStore is a write ahead Raft log
func (*LogStore) DeleteRange ¶
DeleteRange is used to delete logs within a given range inclusively.
func (*LogStore) FirstIndex ¶
FirstIndex returns the first known index from the Raft log.
Click to show internal directories.
Click to hide internal directories.