ledisdb: github.com/siddontang/ledisdb/store/goleveldb Index | Files

package goleveldb

import "github.com/siddontang/ledisdb/store/goleveldb"

Index

Package Files

batch.go const.go db.go iterator.go snapshot.go

Constants

const DBName = "goleveldb"
const MemDBName = "memory"

type DB Uses

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

func (*DB) Close Uses

func (db *DB) Close() error

func (*DB) Compact Uses

func (db *DB) Compact() error

func (*DB) Delete Uses

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

func (*DB) Get Uses

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

func (*DB) NewIterator Uses

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

func (*DB) NewSnapshot Uses

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

func (*DB) NewWriteBatch Uses

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

func (*DB) Put Uses

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

func (*DB) SyncDelete Uses

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

func (*DB) SyncPut Uses

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

type Iterator Uses

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

func (*Iterator) Close Uses

func (it *Iterator) Close() error

func (*Iterator) First Uses

func (it *Iterator) First()

func (*Iterator) Key Uses

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

func (*Iterator) Last Uses

func (it *Iterator) Last()

func (*Iterator) Next Uses

func (it *Iterator) Next()

func (*Iterator) Prev Uses

func (it *Iterator) Prev()

func (*Iterator) Seek Uses

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

func (*Iterator) Valid Uses

func (it *Iterator) Valid() bool

func (*Iterator) Value Uses

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

type MemStore Uses

type MemStore struct {
}

func (MemStore) Open Uses

func (s MemStore) Open(path string, cfg *config.Config) (driver.IDB, error)

func (MemStore) Repair Uses

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

func (MemStore) String Uses

func (s MemStore) String() string

type Snapshot Uses

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

func (*Snapshot) Close Uses

func (s *Snapshot) Close()

func (*Snapshot) Get Uses

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

func (*Snapshot) NewIterator Uses

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

type Store Uses

type Store struct {
}

func (Store) Open Uses

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

func (Store) Repair Uses

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

func (Store) String Uses

func (s Store) String() string

type WriteBatch Uses

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

func (*WriteBatch) Close Uses

func (w *WriteBatch) Close()

func (*WriteBatch) Commit Uses

func (w *WriteBatch) Commit() error

func (*WriteBatch) Data Uses

func (w *WriteBatch) Data() []byte

func (*WriteBatch) Delete Uses

func (w *WriteBatch) Delete(key []byte)

func (*WriteBatch) Put Uses

func (w *WriteBatch) Put(key, value []byte)

func (*WriteBatch) Rollback Uses

func (w *WriteBatch) Rollback() error

func (*WriteBatch) SyncCommit Uses

func (w *WriteBatch) SyncCommit() error

Package goleveldb imports 10 packages (graph) and is imported by 11 packages. Updated 2017-03-15. Refresh now. Tools for package owners.