Documentation ¶
Index ¶
- type MDBStore
- func (m *MDBStore) Close() error
- func (m *MDBStore) DeleteRange(minIdx, maxIdx uint64) error
- func (m *MDBStore) FirstIndex() (uint64, error)
- func (m *MDBStore) Get(key []byte) ([]byte, error)
- func (m *MDBStore) GetLog(index uint64, logOut *raft.Log) error
- func (m *MDBStore) GetUint64(key []byte) (uint64, error)
- func (m *MDBStore) LastIndex() (uint64, error)
- func (m *MDBStore) Set(key []byte, val []byte) error
- func (m *MDBStore) SetUint64(key []byte, val uint64) error
- func (m *MDBStore) StoreLog(log *raft.Log) error
- func (m *MDBStore) StoreLogs(logs []*raft.Log) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MDBStore ¶
type MDBStore struct {
// contains filtered or unexported fields
}
MDBStore provides an implementation of LogStore and StableStore, all backed by a single MDB database.
func NewMDBStore ¶
NewMDBStore returns a new MDBStore and potential error. Requres a base directory from which to operate. Uses the default maximum size.
func NewMDBStoreWithSize ¶
NewMDBStore returns a new MDBStore and potential error. Requres a base directory from which to operate, and a maximum size. If maxSize is not 0, a default value is used.
func (*MDBStore) DeleteRange ¶
Deletes a range of log entries. The range is inclusive.
func (*MDBStore) FirstIndex ¶
Click to show internal directories.
Click to hide internal directories.