boltdb

package
v0.0.0-...-8d38f2a Latest Latest
Warning

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

Go to latest
Published: May 1, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DBName = "boltdb"

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func (*DB) BatchPut

func (db *DB) BatchPut(writes []driver.Write) error

func (*DB) Begin

func (db *DB) Begin() (driver.Tx, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) Compact

func (db *DB) Compact() error

func (*DB) Delete

func (db *DB) Delete(key []byte) error

func (*DB) Get

func (db *DB) Get(key []byte) ([]byte, error)

func (*DB) NewIterator

func (db *DB) NewIterator() driver.IIterator

func (*DB) NewSnapshot

func (db *DB) NewSnapshot() (driver.ISnapshot, error)

func (*DB) NewWriteBatch

func (db *DB) NewWriteBatch() driver.IWriteBatch

func (*DB) Put

func (db *DB) Put(key []byte, value []byte) error

func (*DB) SyncBatchPut

func (db *DB) SyncBatchPut(writes []driver.Write) error

func (*DB) SyncDelete

func (db *DB) SyncDelete(key []byte) error

func (*DB) SyncPut

func (db *DB) SyncPut(key []byte, value []byte) error

type Iterator

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

func (*Iterator) Close

func (it *Iterator) Close() error

func (*Iterator) First

func (it *Iterator) First()

func (*Iterator) Key

func (it *Iterator) Key() []byte

func (*Iterator) Last

func (it *Iterator) Last()

func (*Iterator) Next

func (it *Iterator) Next()

func (*Iterator) Prev

func (it *Iterator) Prev()

func (*Iterator) Seek

func (it *Iterator) Seek(key []byte)

func (*Iterator) Valid

func (it *Iterator) Valid() bool

func (*Iterator) Value

func (it *Iterator) Value() []byte

type Snapshot

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

func (*Snapshot) Close

func (s *Snapshot) Close()

func (*Snapshot) Get

func (s *Snapshot) Get(key []byte) ([]byte, error)

func (*Snapshot) NewIterator

func (s *Snapshot) NewIterator() driver.IIterator

type Store

type Store struct {
}

func (Store) Open

func (s Store) Open(dbPath string, cfg *config.Config) (driver.IDB, error)

func (Store) Repair

func (s Store) Repair(path string, cfg *config.Config) error

func (Store) String

func (s Store) String() string

type Tx

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

func (*Tx) BatchPut

func (t *Tx) BatchPut(writes []driver.Write) error

func (*Tx) Commit

func (t *Tx) Commit() error

func (*Tx) Delete

func (t *Tx) Delete(key []byte) error

func (*Tx) Get

func (t *Tx) Get(key []byte) ([]byte, error)

func (*Tx) NewIterator

func (t *Tx) NewIterator() driver.IIterator

func (*Tx) NewWriteBatch

func (t *Tx) NewWriteBatch() driver.IWriteBatch

func (*Tx) Put

func (t *Tx) Put(key []byte, value []byte) error

func (*Tx) Rollback

func (t *Tx) Rollback() error

func (*Tx) SyncBatchPut

func (t *Tx) SyncBatchPut(writes []driver.Write) error

Jump to

Keyboard shortcuts

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