db

package
v0.0.0-...-fe9eb67 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2015 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketNotFoundErr

func BucketNotFoundErr(b Bucket) error

func DeleteByKey

func DeleteByKey(d DB, bucket Bucket, key []byte) error

func GetByKey

func GetByKey(d DB, bucket Bucket, key []byte) ([]byte, error)

func SetupBuckets

func SetupBuckets(d DB, buckets []Bucket) error

func StoreKeyValue

func StoreKeyValue(d DB, bucket Bucket, key []byte, value interface{}) error

Types

type Bucket

type Bucket string

type DB

type DB interface {
	// Begin(writable bool) (*bolt.Tx, error)
	// Close() error
	// GoString() string
	// Info() *Info
	// Path() string
	// Stats() Stats
	// String() string
	Update(fn func(*bolt.Tx) error) error
	View(fn func(*bolt.Tx) error) error
}

Jump to

Keyboard shortcuts

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