Documentation ¶
Index ¶
- type LevelKV
- func (kv *LevelKV) Close()
- func (kv *LevelKV) Delete(ctx context.Context, key []byte) error
- func (kv *LevelKV) Get(key []byte) ([]byte, error)
- func (kv *LevelKV) GetSnapshot() (*leveldb.Snapshot, error)
- func (kv *LevelKV) Has(key []byte) bool
- func (kv *LevelKV) List() map[string]string
- func (kv *LevelKV) NewIterator(slice *util.Range, ro *opt.ReadOptions) iterator.Iterator
- func (kv *LevelKV) Put(ctx context.Context, key, value []byte) error
- type OperateType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelKV ¶
type LevelKV struct {
// contains filtered or unexported fields
}
func NewLevelKVDB ¶
func (*LevelKV) NewIterator ¶
type OperateType ¶
type OperateType byte
const ( SetOperateType OperateType = iota DeleteOperateType )
Click to show internal directories.
Click to hide internal directories.