Documentation ¶
Index ¶
- type Engine
- type LevelEngine
- func (ldb *LevelEngine) Bulk() kv.Bulk
- func (ldb *LevelEngine) Close() error
- func (ldb *LevelEngine) Delete(key []byte) error
- func (ldb *LevelEngine) DeleteRange(ctx context.Context, r kv.Range) error
- func (ldb *LevelEngine) Get(key []byte) ([]byte, error)
- func (ldb *LevelEngine) Has(key []byte) (bool, error)
- func (ldb *LevelEngine) IsNotFound(err error) bool
- func (ldb *LevelEngine) Iterate(r kv.Range) kv.Iterator
- func (ldb *LevelEngine) Put(key, val []byte) error
- func (ldb *LevelEngine) Snapshot() kv.Snapshot
- func (ldb *LevelEngine) Stats(s *leveldb.DBStats) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
Engine defines the interface of K-V engine.
func NewLevelEngine ¶
NewLevelEngine creates leveldb instance which implements the Engine interface.
type LevelEngine ¶
type LevelEngine struct {
// contains filtered or unexported fields
}
func (*LevelEngine) Bulk ¶
func (ldb *LevelEngine) Bulk() kv.Bulk
func (*LevelEngine) Close ¶
func (ldb *LevelEngine) Close() error
func (*LevelEngine) Delete ¶
func (ldb *LevelEngine) Delete(key []byte) error
func (*LevelEngine) DeleteRange ¶
func (*LevelEngine) IsNotFound ¶
func (ldb *LevelEngine) IsNotFound(err error) bool
func (*LevelEngine) Put ¶
func (ldb *LevelEngine) Put(key, val []byte) error
func (*LevelEngine) Snapshot ¶
func (ldb *LevelEngine) Snapshot() kv.Snapshot
Click to show internal directories.
Click to hide internal directories.