db

package
v0.0.0-...-88075b7 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbPath = "/var/lib/mockr/bolt.db"
)

Variables

View Source
var (
	ErrKeyNotFound = errors.New("key not found")
)

Functions

This section is empty.

Types

type DB

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

func New

func New(path string, bucketName []byte) (*DB, error)

func (*DB) Close

func (d *DB) Close() error

func (*DB) Delete

func (d *DB) Delete(k, bucketName []byte) error

func (*DB) Get

func (d *DB) Get(k, bucketName []byte) ([]byte, error)

func (*DB) Set

func (d *DB) Set(k, v, bucketName []byte) error

Jump to

Keyboard shortcuts

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