Documentation ¶
Index ¶
- type KVStore
- func (k *KVStore) GetInt64(bucket string, key string) (value int64, found bool, err error)
- func (k *KVStore) GetString(bucket string, key string) (value string, found bool, err error)
- func (k *KVStore) Inc(bucket string, key string) (value int64, found bool, err error)
- func (k *KVStore) SetInt64(bucket string, key string, value int64) error
- func (k *KVStore) SetString(bucket string, key string, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVStore ¶
type KVStore struct {
// contains filtered or unexported fields
}
func NewKVStore ¶
func (*KVStore) GetInt64 ¶
GetInt64 returns the int64 value if found or an error for the given bucket, key.
func (*KVStore) GetString ¶
GetString returns the string value if found or an error for the given bucket, key.
func (*KVStore) Inc ¶
Inc increments the int64 value for the given bucket/key. It return the new value if found or an error.
Click to show internal directories.
Click to hide internal directories.