levigo

package
v0.0.0-...-bdd3411 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(path string) error

Destroy destroys the DB at the given path.

func New

func New(db *levigo.DB) *kvq.DB

func Open

func Open(path string) (*kvq.DB, error)

Types

type Batch

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

func NewBatch

func NewBatch(q *Bucket) *Batch

func (*Batch) Clear

func (b *Batch) Clear()

func (*Batch) Close

func (b *Batch) Close()

func (*Batch) Delete

func (b *Batch) Delete(k []byte) error

func (*Batch) Put

func (b *Batch) Put(k, v []byte) error

func (*Batch) Write

func (b *Batch) Write() error

type Bucket

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

func (*Bucket) Batch

func (q *Bucket) Batch(fn func(backend.Batch) error) error

func (*Bucket) Clear

func (q *Bucket) Clear() error

func (*Bucket) ForEach

func (q *Bucket) ForEach(fn func(k, v []byte) error) error

func (*Bucket) Get

func (q *Bucket) Get(k []byte) ([]byte, error)

type DB

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

func (*DB) Bucket

func (db *DB) Bucket(name string) (backend.Bucket, error)

func (*DB) Close

func (db *DB) Close()

Jump to

Keyboard shortcuts

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