badgerdb

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDataDir = "./data"

DefaultDataDir is the default directory for BadgerDB storage

Variables

This section is empty.

Functions

func New

func New(cfg *Config) (repository.Container, error)

New initializes BadgerDB storage and returns associated container.

Types

type Config

type Config struct {
	DataDir string `yaml:"data_dir"`
}

Config represents BadgerDB storage configuration.

func (*Config) UnmarshalYAML added in v0.4.5

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML satisfies Unmarshaler interface

Jump to

Keyboard shortcuts

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