db

package
v0.0.0-...-5d05a64 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 7 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 {
	Lock sync.RWMutex
	// contains filtered or unexported fields
}

func NewDB

func NewDB(directory string, filename string) (*DB, error)

func (*DB) Close

func (db *DB) Close()

func (*DB) DB

func (db *DB) DB() *bbolt.DB

func (*DB) Get

func (db *DB) Get(key []byte) ([]byte, error)

func (*DB) GetFromBucket

func (db *DB) GetFromBucket(key []byte, bucket []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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