db

package
v0.0.0-...-dd3b30f Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 1 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 {
	// contains filtered or unexported fields
}

DB holder for DB junk

func NewDB

func NewDB() *DB

NewDB inits it

func (*DB) Close

func (d *DB) Close() error

Close closes boltdb

func (*DB) Get

func (d *DB) Get(bucket string, key string) (bytes []byte, err error)

Get a key from a bucket

func (*DB) GetAll

func (d *DB) GetAll(bucket string) (objects [][]byte, err error)

GetAll retrieve all of the objects for the given bucket name

func (*DB) Upsert

func (d *DB) Upsert(bucket string, key string, value []byte) error

Upsert insert or update based on key and bucket

Jump to

Keyboard shortcuts

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