Documentation ¶
Index ¶
- Constants
- func SnapshotID(index uint64) string
- type BackupDumper
- type DB
- func (d *DB) Create(version raft.SnapshotVersion, index, term uint64, ...) (raft.SnapshotSink, error)
- func (d *DB) List() (ret []*raft.SnapshotMeta, err error)
- func (d *DB) Open(id string) (*raft.SnapshotMeta, io.ReadCloser, error)
- func (d *DB) Update(f func(tx *Tx) error) error
- func (d *DB) View(f func(tx *Tx) error) error
- type Tx
Constants ¶
View Source
const ( SnapDir = "snaps" MetaFileSuffix = ".meta.json" SnapFileSuffix = ".badger.bak" TimeFileSuffix = ".badger.time" )
View Source
const StateDir = "states"
Variables ¶
This section is empty.
Functions ¶
func SnapshotID ¶
Types ¶
type BackupDumper ¶
type BackupDumper interface {
Backup() error
}
type DB ¶
type DB struct { *badger.DB // contains filtered or unexported fields }
func (*DB) Create ¶
func (d *DB) Create( version raft.SnapshotVersion, index, term uint64, configuration raft.Configuration, configurationIndex uint64, _ raft.Transport, ) (raft.SnapshotSink, error)
func (*DB) Open ¶
func (d *DB) Open(id string) (*raft.SnapshotMeta, io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.