Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(config DatabaseConfig) (db.Database, error)
New creates a new database based on the config
Types ¶
type DatabaseConfig ¶ added in v1.0.3
type DatabaseConfig struct {
Name string
Dir string
Config []byte
Type string // "leveldb", "pebbledb", "badgerdb", "memdb"
MetricsReg prometheus.Registerer
}
DatabaseConfig contains all the parameters necessary to create a database
Click to show internal directories.
Click to hide internal directories.