Documentation
¶
Index ¶
- type KV
- type KVPrefix
- func (p KVPrefix) Delete(k []byte) error
- func (p KVPrefix) Get(k []byte) ([]byte, error)
- func (p KVPrefix) GetProto(k []byte, m proto.Message) error
- func (p KVPrefix) List(prefix []byte) ([][]byte, error)
- func (p KVPrefix) Set(k, b []byte) error
- func (p KVPrefix) SetProto(k []byte, m proto.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
KV provides key-value storage
func (KV) WithPrefix ¶
WithPrefix creates a wrapped KV where all keys are forced to have a given prefix. This segregates values from each module
type KVPrefix ¶
type KVPrefix struct {
// contains filtered or unexported fields
}
func (KVPrefix) Get ¶
Get a value. If no value is found with this key, akcore.ErrNotFound is returned.
Click to show internal directories.
Click to hide internal directories.