Documentation ¶
Index ¶
- Constants
- func ConcatKeyValues(kvs KeyValues) string
- func ConcatTagValues(tagValues []string) string
- func EscapeTag(in []byte) []byte
- func SplitTagValues(tags string) []string
- func UnescapeTag(in []byte) []byte
- func XXHashOfKeyValues(kvs KeyValues) uint64
- type KeyID
- type KeyValues
- type Meta
- type Metas
- type Tag
- type Tags
Constants ¶
View Source
const EmptyTagKeyID = KeyID(0)
EmptyTagKeyID represents empty value for tag key id.
Variables ¶
This section is empty.
Functions ¶
func ConcatKeyValues ¶
func ConcatTagValues ¶
ConcatTagValues concat the tag values to string
func SplitTagValues ¶
SplitTagValues splits the string of tag values to array
func UnescapeTag ¶
func XXHashOfKeyValues ¶
XXHashOfKeyValues calculates a hash of sorted KeyValues If length <= 256, allocates a slice on stack. Otherwise, picks a buffer from sync pool to hold the concated string.
Types ¶
type KeyValues ¶
type KeyValues []*protoMetricsV1.KeyValue
func KeyValuesFromMap ¶
type Metas ¶
type Metas []Meta
Metas implements sort.Interface, it's sorted by name
func UnmarshalBinary ¶
type Tags ¶
type Tags []Tag
Tags implements sort.Interface
func TagsFromMap ¶
func (Tags) AppendHashKey ¶
AppendHashKey appends the result of hashing all of a tag's keys and values to dst and returns the extended buffer.
Click to show internal directories.
Click to hide internal directories.