db

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LEVEL_DB = "leveldb"
	FILE_DB  = "filedb"
)

Variables

This section is empty.

Functions

func NewDatabase

func NewDatabase(dbPath string) (types.Database, error)

func SetConfig

func SetConfig(config DbConfig)

Types

type DbConfig

type DbConfig struct {
	Type string `yaml:"type,omitempty"`
}
var Config DbConfig = Defaults()

func Defaults

func Defaults() DbConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL