Documentation ¶
Index ¶
- type DB
- func (_m *DB) Begin()
- func (_m *DB) BeginTx() (db.TxKV, error)
- func (_m *DB) Close()
- func (_m *DB) Commit() error
- func (_m *DB) CompactRange(start []byte, limit []byte) error
- func (_m *DB) Delete(_a0 []byte) error
- func (_m *DB) DeleteSync(_a0 []byte) error
- func (_m *DB) Get(key []byte) ([]byte, error)
- func (_m *DB) GetCache() *lru.ARCCache
- func (_m *DB) Iterator(start []byte, end []byte, reserver bool) db.Iterator
- func (_m *DB) NewBatch(sync bool) db.Batch
- func (_m *DB) Print()
- func (_m *DB) Rollback()
- func (_m *DB) Set(key []byte, value []byte) error
- func (_m *DB) SetCacheSize(size int)
- func (_m *DB) SetSync(_a0 []byte, _a1 []byte) error
- func (_m *DB) Stats() map[string]string
- type KV
- type KVDB
- func (_m *KVDB) Begin()
- func (_m *KVDB) Commit() error
- func (_m *KVDB) Get(key []byte) ([]byte, error)
- func (_m *KVDB) List(prefix []byte, key []byte, count int32, direction int32) ([][]byte, error)
- func (_m *KVDB) PrefixCount(prefix []byte) int64
- func (_m *KVDB) Rollback()
- func (_m *KVDB) Set(key []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB is an autogenerated mock type for the DB type
func (*DB) CompactRange ¶
CompactRange provides a mock function with given fields: start, limit
func (*DB) DeleteSync ¶
DeleteSync provides a mock function with given fields: _a0
func (*DB) SetCacheSize ¶
SetCacheSize provides a mock function with given fields: size
type KV ¶
KV is an autogenerated mock type for the KV type
type KVDB ¶
KVDB is an autogenerated mock type for the KVDB type
func (*KVDB) PrefixCount ¶
PrefixCount provides a mock function with given fields: prefix
Click to show internal directories.
Click to hide internal directories.