Discover Packages
github.com/jrife/flock
storage
kv
keys
composite
package
Version:
v0.0.0-...-2627f95
Opens a new window with list of versions in this module.
Published: Jun 25, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Compare compares two keys
-1 means a < b
1 means a > b
0 means a = b
HasPrefix returns true if
b is a prefix of a
Key is a sequence of keys
Range represents all keys such that
k >= Min and k < Max
If Min = nil that indicates the start of all keys
If Max = nil that indicatese the end of all keys
If multiple modifiers are called on a range the end
result is effectively the same as ANDing all the
restrictions.
All returns a new key range matching all keys
Contains returns true if the range contains
key
Get returns the range for the ith key level
It returns a full range if level i doesn't exist
in this range.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.