keyval

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValue

func GetValue(kv *badger.DB, key string) []byte

GetValue gets a value for a key in a key-value store.

func InitKeyVal

func InitKeyVal(dir string) *badger.DB

InitKeyVal --- InitBadger finds and initializes connection to a badger key-value store. If the store does not exist, InitBadger creates it.

func ResetKeyVal

func ResetKeyVal(dir string) error

ResetKeyVal cleans key-value store from old data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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