Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNonExistentKey ¶ added in v0.4.2
IsNonExistentKey returns true if the error is a NonExistentKeyError. This is syntactic sugar.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key represents a key in a key/value store.
type KeyValue ¶
KeyValue represents a key and a value from a key/value store.
func NewKeyValue ¶
NewKeyValue creates a new KeyValue from a key and value.
func NewKeyValueFromBytes ¶ added in v0.4.2
type NonExistentKeyError ¶ added in v0.4.2
NonExistentKeyError is an error type for when a key does not exist or has no value. This allows us to maintain consistency in error handling across different key-value stores. See RegularizeKVError for more information.
func (*NonExistentKeyError) Error ¶ added in v0.4.2
func (neke *NonExistentKeyError) Error() string
func (*NonExistentKeyError) Unwrap ¶ added in v0.4.2
func (neke *NonExistentKeyError) Unwrap() error
Unwrap returns the underlying error, if any. This implements the errors.Wrapper interface.
Click to show internal directories.
Click to hide internal directories.