Documentation ¶
Index ¶
- func AddValue(bucket string, key []byte, value []byte) error
- func AddValueCompress(bucket string, key []byte, value []byte) error
- func DeleteBucket(bucket string) error
- func DeleteKey(bucket string, key []byte) error
- func GetCompressedValue(bucket string, key []byte) ([]byte, error)
- func GetValue(bucket string, key []byte) ([]byte, error)
- func Register(name string, h KVStore)
- type KVStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteBucket ¶
Types ¶
type KVStore ¶
type KVStore interface { Open() error Close() error GetValue(bucket string, key []byte) ([]byte, error) GetCompressedValue(bucket string, key []byte) ([]byte, error) AddValueCompress(bucket string, key []byte, value []byte) error AddValue(bucket string, key []byte, value []byte) error DeleteKey(bucket string, key []byte) error DeleteBucket(bucket string) error }
Click to show internal directories.
Click to hide internal directories.