Documentation ¶
Index ¶
- func Get(key string, callback KVDBGetCallback)
- func GetOrPut(key string, val string, callback KVDBGetOrPutCallback)
- func GetRange(beginKey string, endKey string, callback KVDBGetRangeCallback)
- func Initialize()
- func NextLargerKey(key string) string
- func Put(key string, val string, callback KVDBPutCallback)
- type KVDBGetCallback
- type KVDBGetOrPutCallback
- type KVDBGetRangeCallback
- type KVDBPutCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(key string, callback KVDBGetCallback)
Get gets value of key from KVDB, returns in callback
func GetOrPut ¶
func GetOrPut(key string, val string, callback KVDBGetOrPutCallback)
GetOrPut gets value of key from KVDB, if val not exists or is "", put key-value to KVDB.
func GetRange ¶
func GetRange(beginKey string, endKey string, callback KVDBGetRangeCallback)
GetRange retrives key-value items of specified key range, returns in callback
func NextLargerKey ¶
NextLargerKey finds the next key that is larger than the specified key, but smaller than any other keys that is larger than the specified key
func Put ¶
func Put(key string, val string, callback KVDBPutCallback)
Put puts key-value item to KVDB, returns in callback
Types ¶
type KVDBGetCallback ¶
KVDBGetCallback is type of KVDB Get callback
type KVDBGetOrPutCallback ¶
KVDBGetOrPutCallback is type of KVDB GetOrPut callback
type KVDBGetRangeCallback ¶
type KVDBGetRangeCallback func(items []kvdbtypes.KVItem, err error)
KVDBGetRangeCallback is type of KVDB GetRange callback
type KVDBPutCallback ¶
type KVDBPutCallback func(err error)
KVDBPutCallback is type of KVDB Get callback
Click to show internal directories.
Click to hide internal directories.