Documentation ¶
Overview ¶
Package dbkey provides some common utility code for working with key-value stores that use prefixes to partition the key space.
Index ¶
Constants ¶
View Source
const PrefixLen = 6
PrefixLen is the length in bytes of the prefixes generated by this package.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prefix ¶
type Prefix string
Prefix is a prefix that defines a subset of the keys of a key-value store. Any string can be a valid prefix, including "".
func (Prefix) Keyspace ¶
Keyspace creates a keyspace prefix based on p, using name. Derived prefixes are always PrefixLen bytes long.
Click to show internal directories.
Click to hide internal directories.