Documentation ¶
Overview ¶
Package badgerdb implements the storage backends using BadgerDB.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RaftLogPrefix = storage.RaftPrefix.For("/log/")
View Source
var StableStorePrefix = storage.RaftPrefix.For("/stable/")
Functions ¶
func NewLogAdapter ¶
NewLogAdapter returns a badger log adapter for the given logger.
Types ¶
type Options ¶
type Options struct { // InMemory specifies whether to use an in-memory storage. InMemory bool // DiskPath is the path to use for disk storage. DiskPath string // SyncWrites specifies whether to sync writes to disk. SyncWrites bool // Debug specifies whether to enable debug logging. Debug bool }
Options are the options for creating a new NutsDB storage.
Click to show internal directories.
Click to hide internal directories.