db

package
v0.0.0-...-aefcfe0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *bolt.DB
)

Functions

func BatchLoad

func BatchLoad(prefix string) (map[string][]byte, error)

BatchLoad loads multiple values and returns map

func DeleteByKey

func DeleteByKey(key string) error

DeleteByKey deletes value by key

func LoadByKey

func LoadByKey(key string) ([]byte, error)

LoadByKey loads from bolt by key

func SaveByKey

func SaveByKey(key string, value []byte) error

SaveByKey saves value into bolt by key

Types

This section is empty.

Jump to

Keyboard shortcuts

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