Documentation ¶
Index ¶
- Variables
- type KVStore
- func (kvs *KVStore) Del(k string)
- func (kvs *KVStore) Get(k string) (interface{}, bool)
- func (kvs *KVStore) GetBool(k string) (bool, error)
- func (kvs *KVStore) GetBoolWithPB(k string) (bool, error)
- func (kvs *KVStore) GetBytes(k string) ([]byte, error)
- func (kvs *KVStore) GetString(k string) (string, error)
- func (kvs *KVStore) Set(k string, v interface{})
- func (kvs *KVStore) SetBool(k string, v bool)
- func (kvs *KVStore) SetBoolWithPB(k string, v bool) error
- func (kvs *KVStore) SetBytes(k string, v []byte)
- func (kvs *KVStore) SetString(k string, v string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotExists = errors.New("Key does not exist") ErrTypeError = errors.New("Type error") )
Functions ¶
This section is empty.
Types ¶
type KVStore ¶
type KVStore struct {
// contains filtered or unexported fields
}
func NewKVStore ¶
func NewKVStore() *KVStore
Click to show internal directories.
Click to hide internal directories.