bbolt

package
v0.0.0-...-251cc68 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BboltDB

type BboltDB struct {
	// contains filtered or unexported fields
}

BboltDB represent a bolt instance.

func NewBboltDB

func NewBboltDB(path string, mode os.FileMode, options *bolt.Options) (*BboltDB, error)

NewBboltDB creates a new bolt database.

func (*BboltDB) Close

func (b *BboltDB) Close() error

Close the internal database.

func (*BboltDB) Delete

func (b *BboltDB) Delete(buck string, key []byte) error

Delete a key/value from the buck..

func (*BboltDB) Get

func (b *BboltDB) Get(buck string, key string) ([]byte, error)

Get a value via the key from the buck.

func (*BboltDB) Path

func (b *BboltDB) Path() string

Path returns the location of the database.

func (*BboltDB) Put

func (b *BboltDB) Put(buck string, key string, payload []byte) error

Put a key/vaue into the buck.

Jump to

Keyboard shortcuts

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