Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetPutCloser ¶
GetPutCloser with close method.
type Getter ¶
type Getter interface { // Get value for given key. // An error returned if key not found. It can be checked via IsNotFound. Get(key []byte) (value []byte, err error) Has(key []byte) (bool, error) IsNotFound(error) bool NewIterator(r Range) Iterator }
Getter wraps methods for getting kvs.
type Range ¶
Range describes key range of kv store.
func NewRangeWithBytesPrefix ¶
NewRangeWithBytesPrefix create a range defined by bytes prefix.
func NewRangeWithHexPrefix ¶
NewRangeWithHexPrefix create a range defined by hex prefix. The hex can be odd.
func (Range) WithPrefix ¶
WithPrefix create a new range prefixed with prefix.
Click to show internal directories.
Click to hide internal directories.