persistent

package
v0.0.0-...-9a73439 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BUCKET_NAME []byte = []byte{'e', 'p', 'a', 'x', 'o', 's'}

Functions

This section is empty.

Types

type BoltDB

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

func NewBoltDB

func NewBoltDB(path string, restore bool) (*BoltDB, error)

func (*BoltDB) BatchPut

func (d *BoltDB) BatchPut(kvs []*epaxos.KVpair) error

func (*BoltDB) Close

func (d *BoltDB) Close() error

func (*BoltDB) Delete

func (d *BoltDB) Delete(key string) error

func (*BoltDB) Drop

func (d *BoltDB) Drop() error

func (*BoltDB) Get

func (d *BoltDB) Get(key string) ([]byte, error)

func (*BoltDB) GetPath

func (d *BoltDB) GetPath() string

func (*BoltDB) Put

func (d *BoltDB) Put(key string, value []byte) error

type DB

type DB interface {
	GetPath() string
	Put(key string, value []byte) error
	Get(key string) ([]byte, error)
	Delete(key string) error
	BatchPut(kvs []*epaxos.KVpair) error
	Close() error
	Drop() error
}

Jump to

Keyboard shortcuts

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