Documentation
¶
Index ¶
- type MigrationStats
- type PebbleStore
- func (s *PebbleStore) Close() error
- func (s *PebbleStore) DeleteRange(min, max uint64) error
- func (s *PebbleStore) FirstIndex() (uint64, error)
- func (s *PebbleStore) Get(key []byte) ([]byte, error)
- func (s *PebbleStore) GetLog(index uint64, out *raft.Log) error
- func (s *PebbleStore) GetUint64(key []byte) (uint64, error)
- func (s *PebbleStore) LastIndex() (uint64, error)
- func (s *PebbleStore) Set(key []byte, value []byte) error
- func (s *PebbleStore) SetUint64(key []byte, value uint64) error
- func (s *PebbleStore) StoreLog(log *raft.Log) error
- func (s *PebbleStore) StoreLogs(logs []*raft.Log) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrationStats ¶
func MigrateLegacyBoltDB ¶
func MigrateLegacyBoltDB(logsPath, stablePath, destDir string) (*MigrationStats, error)
type PebbleStore ¶
type PebbleStore struct {
// contains filtered or unexported fields
}
func NewPebbleStore ¶
func NewPebbleStore(dir string) (*PebbleStore, error)
func (*PebbleStore) Close ¶
func (s *PebbleStore) Close() error
func (*PebbleStore) DeleteRange ¶
func (s *PebbleStore) DeleteRange(min, max uint64) error
func (*PebbleStore) FirstIndex ¶
func (s *PebbleStore) FirstIndex() (uint64, error)
func (*PebbleStore) LastIndex ¶
func (s *PebbleStore) LastIndex() (uint64, error)
Click to show internal directories.
Click to hide internal directories.