leveldb

package
v0.0.0-...-185ace6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Type = "leveldb"

Variables

This section is empty.

Functions

func Fixture

func Fixture() (*leveldb.DB, func())

Fixture returns a temporary test database for testing.

func New

func New(config Config) (*leveldb.DB, error)

New creates a new local LevelDB database.

Types

type Config

type Config struct {
	DataDir   string `json:"data_dir" split_words:"true"`
	KeyPrefix string `json:"key_prefix" split_words:"true"`
}

Config defines database configuration.

Jump to

Keyboard shortcuts

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