kvdb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	bolt.DB
	Mutex sync.RWMutex
}

func NewDB

func NewDB(db_path string) (*DB, error)

NewDB instantiates the bbolt kvdb and returns it along with a RWMutex to make it read/write safe in goroutines

Jump to

Keyboard shortcuts

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