Documentation ¶
Overview ¶
Package hexkey implements utilities for hexadecimal encoding of blob store keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotMyKey = errors.New("key does not match config")
ErrNotMyKey is a sentinel error reported by Decode when given a key that does not match the parameters of the config.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Prefix, if set, is prepended to all keys, separated from the remainder of // the key by "/". Prefix string // Shard, if positive, specifies a prefix of each hex-encoded key that will // be separated from the key by an intervening "/". Shard int }
Config carries settings for the encoding and decoding of hex keys. The zero value is ready for use and encodes keys as plain hexadecimal strings.
Click to show internal directories.
Click to hide internal directories.