bolt

package
v0.0.0-...-7447204 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDBError     = errors.New("database error")
	ErrNotFoundKey = errors.New("couldn't find the key")
	ErrEmptyKey    = errors.New("key cannot be empty")
	ErrEmptyValue  = errors.New("username cannot be empty")
	ErrEmptyBucket = errors.New("empty bucket")
	ErrForbidden   = errors.New("unable to modify this resource")
)

Functions

func NewKeysRepository

func NewKeysRepository(db *bbolt.DB) keys.Repository

NewKeysRepository creates a keys.Repository from the Bolt DB `db`

func Open

func Open(path string) (*bbolt.DB, error)

Open will initialize a Bolt DB based on the `.db` file in `path`, returning a pointer to a bbolt.DB and an error

Types

This section is empty.

Jump to

Keyboard shortcuts

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