Documentation ¶
Overview ¶
Package dbconfig is a micropackage that contains storage DB configuration options.
Index ¶
Constants ¶
View Source
const ( // BoltDB represents Bolt DB storage name. BoltDB = "boltdb" // LevelDB represents Level DB storage name. LevelDB = "leveldb" // InMemoryDB represents in-memory storage name. InMemoryDB = "inmemory" )
Available storage types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDBOptions ¶
BoltDBOptions configuration for BoltDB.
type DBConfiguration ¶
type DBConfiguration struct { Type string `yaml:"Type"` LevelDBOptions LevelDBOptions `yaml:"LevelDBOptions"` BoltDBOptions BoltDBOptions `yaml:"BoltDBOptions"` }
DBConfiguration describes configuration for DB. Supported types: LevelDB, BoltDB or InMemoryDB (not recommended for production usage).
type LevelDBOptions ¶
type LevelDBOptions struct { DataDirectoryPath string `yaml:"DataDirectoryPath"` ReadOnly bool `yaml:"ReadOnly"` }
LevelDBOptions configuration for LevelDB.
Click to show internal directories.
Click to hide internal directories.