database

package
v0.4.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyNotFound = database.ErrKeyNotFound
)

Functions

func CleanupHornetBadgerInstance

func CleanupHornetBadgerInstance()

func GetHornetBadgerInstance

func GetHornetBadgerInstance() *badger.DB

func Settings

func Settings(dir string, options *profile.BadgerOpts)

Settings sets DB dir and the badger options

Types

type Database

type Database = database.Database

func Get

func Get(dbPrefix byte, optionalBadger ...*badger.DB) (Database, error)

type Entry

type Entry = database.Entry

type Key

type Key = database.Key

type KeyOnlyEntry

type KeyOnlyEntry = database.KeyOnlyEntry

type KeyPrefix

type KeyPrefix = database.KeyPrefix

type Value

type Value = database.Value

Jump to

Keyboard shortcuts

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