Documentation ¶
Index ¶
- type Config
- type KVStore
- type LastState
- type SimpleKV
- func (filter *SimpleKV) Add(bucket string, key []byte) error
- func (filter *SimpleKV) AddValue(bucket string, key []byte, value []byte) error
- func (filter *SimpleKV) AddValueCompress(bucket string, key []byte, value []byte) error
- func (filter *SimpleKV) CheckThenAdd(bucket string, key []byte) (b bool, err error)
- func (filter *SimpleKV) Close() error
- func (filter *SimpleKV) Delete(bucket string, key []byte) error
- func (filter *SimpleKV) DeleteKey(bucket string, key []byte) error
- func (filter *SimpleKV) Exists(bucket string, key []byte) bool
- func (filter *SimpleKV) ExistsKey(bucket string, key []byte) (bool, error)
- func (filter *SimpleKV) GetCompressedValue(bucket string, key []byte) ([]byte, error)
- func (filter *SimpleKV) GetValue(bucket string, key []byte) ([]byte, error)
- func (module *SimpleKV) Name() string
- func (filter *SimpleKV) Open() error
- func (module *SimpleKV) Setup()
- func (module *SimpleKV) Start() error
- func (module *SimpleKV) Stop() error
- type WAL
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
}
KVStore represents a simple key-value store.
func NewKVStore ¶
NewKVStore creates a new key-value store and initializes the current state from the last state file.
type SimpleKV ¶
type SimpleKV struct {
// contains filtered or unexported fields
}
func (*SimpleKV) AddValueCompress ¶
func (*SimpleKV) CheckThenAdd ¶
func (*SimpleKV) GetCompressedValue ¶
Click to show internal directories.
Click to hide internal directories.