Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyUID = errors.New("empty uid id") ErrEmptyName = errors.New("empty name id") ErrEmptyIndex = errors.New("empty index id") ErrBadEncoding = errors.New("bad id encoding") ErrBadTag = errors.New("unknown id tag") ErrBadUIDLen = errors.New("uuid payload must be 16 bytes") ErrBadPrefix = errors.New("bad or unknown prefix") ErrBadUUIDLen = errors.New("uuid payload must be 16 bytes") )
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID struct {
// contains filtered or unexported fields
}
func FromUIDOrName ¶
FromUIDOrName creates a ID from the provded strings. Prioritizes UIDs
func ParseBytes ¶
ParseBytes lets you decode ID from a full key (useful in iterators/scans).
func (ID) EncodePrefixed ¶
Click to show internal directories.
Click to hide internal directories.