Documentation ¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) DeleteRange(min, max uint64) error
- func (s *Store) FirstIndex() (uint64, error)
- func (s *Store) Get(key []byte) ([]byte, error)
- func (s *Store) GetLog(index uint64, log *raft.Log) error
- func (s *Store) GetUint64(key []byte) (uint64, error)
- func (s *Store) LastIndex() (uint64, error)
- func (s *Store) Set(key []byte, val []byte) error
- func (s *Store) SetUint64(key []byte, val uint64) error
- func (s *Store) StoreLog(log *raft.Log) error
- func (s *Store) StoreLogs(logs []*raft.Log) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store can be used as a LogStore and StableStore for Raft.
func (*Store) DeleteRange ¶
DeleteRange deletes a range of log entries. The range is inclusive.
func (*Store) FirstIndex ¶
FirstIndex returns the first index written. 0 for no entries.
Click to show internal directories.
Click to hide internal directories.