Documentation ¶
Index ¶
- func Close()
- func Del(key []byte)
- func ForEach(prefix []byte, RemovePrefix bool, fn FOR_EACH_FUNC)
- func ForEachKey(prefix []byte, limit int, offset int, RemovePrefix bool, fn FOR_EACH_KEY_FUNC)
- func Get(key []byte) []byte
- func Has(key []byte) bool
- func Init(cfg *Config)
- func InitProxy(cfg *Config)
- func List(prefix []byte, limit int, offset int, RemovePrefix bool) [][]byte
- func Set(key []byte, value []byte)
- func TestInit()
- func Total(prefix []byte) int64
- func Use(base string)
- type Config
- type DB
- func (db *DB) Close()
- func (db *DB) Del(key []byte)
- func (db *DB) ForEach(prefix []byte, RemovePrefix bool, fn FOR_EACH_FUNC)
- func (db *DB) ForEachKey(prefix []byte, limit int, offset int, RemovePrefix bool, fn FOR_EACH_KEY_FUNC)
- func (db *DB) Get(key []byte) []byte
- func (db *DB) Has(key []byte) bool
- func (db *DB) List(prefix []byte, limit int, offset int, RemovePrefix bool) [][]byte
- func (db *DB) Set(key []byte, value []byte)
- func (db *DB) Total(prefix []byte) int64
- type FOR_EACH_FUNC
- type FOR_EACH_KEY_FUNC
- type FakeDB
- func (db *FakeDB) Close()
- func (db *FakeDB) Del(key []byte)
- func (db *FakeDB) ForEach(prefix []byte, RemovePrefix bool, fn FOR_EACH_FUNC)
- func (db *FakeDB) ForEachKey(prefix []byte, limit int, offset int, RemovePrefix bool, fn FOR_EACH_KEY_FUNC)
- func (db *FakeDB) Get(key []byte) []byte
- func (db *FakeDB) Has(key []byte) bool
- func (db *FakeDB) List(prefix []byte, limit int, offset int, RemovePrefix bool) [][]byte
- func (db *FakeDB) Set(key []byte, value []byte)
- func (db *FakeDB) Total(prefix []byte) int64
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEach ¶
func ForEach(prefix []byte, RemovePrefix bool, fn FOR_EACH_FUNC)
func ForEachKey ¶
func ForEachKey(prefix []byte, limit int, offset int, RemovePrefix bool, fn FOR_EACH_KEY_FUNC)
Types ¶
type Config ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) ForEachKey ¶
type FOR_EACH_FUNC ¶
type FOR_EACH_KEY_FUNC ¶
type FakeDB ¶
type FakeDB struct {
// contains filtered or unexported fields
}
func (*FakeDB) ForEach ¶
func (db *FakeDB) ForEach(prefix []byte, RemovePrefix bool, fn FOR_EACH_FUNC)
func (*FakeDB) ForEachKey ¶
type Storage ¶
type Storage interface { Close() Set([]byte, []byte) Get([]byte) []byte Has([]byte) bool Del([]byte) Total(prefix []byte) int64 List(prefix []byte, limit int, offset int, RemovePrefix bool) [][]byte ForEach(prefix []byte, RemovePrefix bool, fn FOR_EACH_FUNC) ForEachKey(prefix []byte, limit int, offset int, RemovePrefix bool, fn FOR_EACH_KEY_FUNC) }
Click to show internal directories.
Click to hide internal directories.