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

package driver

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

Index

Package Files

driver.go slice.go store.go

func ListStores Uses

func ListStores() []string

func Register Uses

func Register(s Store)

type GoSlice Uses

type GoSlice []byte

func (GoSlice) Data Uses

func (s GoSlice) Data() []byte

func (GoSlice) Free Uses

func (s GoSlice) Free()

func (GoSlice) Size Uses

func (s GoSlice) Size() int

type IDB Uses

type IDB interface {
    Close() error

    Get(key []byte) ([]byte, error)

    Put(key []byte, value []byte) error
    Delete(key []byte) error

    SyncPut(key []byte, value []byte) error
    SyncDelete(key []byte) error

    NewIterator() IIterator

    NewWriteBatch() IWriteBatch

    NewSnapshot() (ISnapshot, error)

    Compact() error
}

type IIterator Uses

type IIterator interface {
    Close() error

    First()
    Last()
    Seek(key []byte)

    Next()
    Prev()

    Valid() bool

    Key() []byte
    Value() []byte
}

type ISlice Uses

type ISlice interface {
    Data() []byte
    Size() int
    Free()
}

type ISliceGeter Uses

type ISliceGeter interface {
    GetSlice(key []byte) (ISlice, error)
}

type ISnapshot Uses

type ISnapshot interface {
    Get(key []byte) ([]byte, error)
    NewIterator() IIterator
    Close()
}

type IWriteBatch Uses

type IWriteBatch interface {
    Put(key []byte, value []byte)
    Delete(key []byte)
    Commit() error
    SyncCommit() error
    Rollback() error
    Data() []byte
    Close()
}

type Store Uses

type Store interface {
    String() string
    Open(path string, cfg *config.Config) (IDB, error)
    Repair(path string, cfg *config.Config) error
}

func GetStore Uses

func GetStore(cfg *config.Config) (Store, error)

Package driver imports 2 packages (graph) and is imported by 18 packages. Updated 2017-03-15. Refresh now. Tools for package owners.