Documentation ¶
Index ¶
- Constants
- type KeyValueDB
- func (kv *KeyValueDB) Close()
- func (kv *KeyValueDB) Delete(ctx context.Context, key string) error
- func (kv *KeyValueDB) Flush(ctx context.Context) error
- func (kv *KeyValueDB) Get(key string) string
- func (kv *KeyValueDB) List() map[string]string
- func (kv *KeyValueDB) Put(ctx context.Context, key, value string) error
- type OperateType
Constants ¶
View Source
const UnDefStr = ""
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValueDB ¶
type KeyValueDB struct {
// contains filtered or unexported fields
}
func NewKeyValueDB ¶
func (*KeyValueDB) Close ¶
func (kv *KeyValueDB) Close()
func (*KeyValueDB) Get ¶
func (kv *KeyValueDB) Get(key string) string
func (*KeyValueDB) List ¶
func (kv *KeyValueDB) List() map[string]string
type OperateType ¶
type OperateType byte
const ( SetOperateType OperateType = iota DeleteOperateType )
Click to show internal directories.
Click to hide internal directories.