Documentation
¶
Overview ¶
Package badger provides a configurable BadgerDB go-datastore for use with IPFS Cluster.
Index ¶
Constants ¶
View Source
const (
DefaultSubFolder = "badger"
)
Default values for badger Config
Variables ¶
View Source
var ( // DefaultBadgerOptions has to be a var because badger.DefaultOptions is. DefaultBadgerOptions badger.Options )
Functions ¶
Types ¶
type Config ¶
type Config struct { config.Saver // The folder for this datastore. Non-absolute paths are relative to // the base configuration folder. Folder string BadgerOptions badger.Options }
Config is used to initialize a BadgerDB datastore. It implements the ComponentConfig interface.
func (*Config) ApplyEnvVars ¶
ApplyEnvVars fills in any Config fields found as environment variables.
func (*Config) ConfigKey ¶
ConfigKey returns a human-friendly identifier for this type of Datastore.
func (*Config) LoadJSON ¶
LoadJSON reads the fields of this Config from a JSON byteslice as generated by ToJSON.
Click to show internal directories.
Click to hide internal directories.