db

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: AGPL-3.0 Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchUpdate

func BatchUpdate(fn func(tx *bolt.Tx) error) error

func Close

func Close() error

func ForEach

func ForEach(rootBucket, nestedBucket string) (value map[string][]byte, err error)

func Get

func Get(rootBucket, nestedBucket, key string) (value []byte, err error)

func GetVersion

func GetVersion() string

func Init

func Init() (err error)

func Put

func Put(root *bolt.Bucket, nestedBucket, key string, value interface{}) error

func PutNestedBucket

func PutNestedBucket(tx *bolt.Tx, rootBucket, nestedBucket, key string, value interface{}) error

func Reset

func Reset() error

func SetVersion

func SetVersion(version string) error

func Update

func Update(rootBucket, nestedBucket, key string, value interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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