Versions in this module Expand all Collapse all v0 v0.54.2 Jan 28, 2025 Changes in this version + const AlertName + const BucketLabel + const InstanceName + const MetricName + func Compare(a, b Labels) int + func Equal(ls, o Labels) bool + func StableHash(ls Labels) uint64 + type Builder struct + func NewBuilder(base Labels) *Builder + func NewBuilderWithSymbolTable(_ *SymbolTable) *Builder + func (b *Builder) Del(ns ...string) *Builder + func (b *Builder) Get(n string) string + func (b *Builder) Keep(ns ...string) *Builder + func (b *Builder) Labels() Labels + func (b *Builder) Range(f func(l Label)) + func (b *Builder) Reset(base Labels) + func (b *Builder) Set(n, v string) *Builder + type FastRegexMatcher struct + func NewFastRegexMatcher(v string) (*FastRegexMatcher, error) + func (m *FastRegexMatcher) GetRegexString() string + func (m *FastRegexMatcher) IsOptimized() bool + func (m *FastRegexMatcher) MatchString(s string) bool + func (m *FastRegexMatcher) SetMatches() []string + type Label struct + Name string + Value string + type Labels []Label + func EmptyLabels() Labels + func FromMap(m map[string]string) Labels + func FromStrings(ss ...string) Labels + func New(ls ...Label) Labels + func ReadLabels(fn string, n int) ([]Labels, error) + func (ls *Labels) CopyFrom(b Labels) + func (ls *Labels) InternStrings(intern func(string) string) + func (ls *Labels) UnmarshalJSON(b []byte) error + func (ls *Labels) UnmarshalYAML(unmarshal func(interface{}) error) error + func (ls Labels) Bytes(buf []byte) []byte + func (ls Labels) BytesWithLabels(buf []byte, names ...string) []byte + func (ls Labels) BytesWithoutLabels(buf []byte, names ...string) []byte + func (ls Labels) Copy() Labels + func (ls Labels) DropMetricName() Labels + func (ls Labels) Get(name string) string + func (ls Labels) Has(name string) bool + func (ls Labels) HasDuplicateLabelNames() (string, bool) + func (ls Labels) Hash() uint64 + func (ls Labels) HashForLabels(b []byte, names ...string) (uint64, []byte) + func (ls Labels) HashWithoutLabels(b []byte, names ...string) (uint64, []byte) + func (ls Labels) IsEmpty() bool + func (ls Labels) IsValid() bool + func (ls Labels) Len() int + func (ls Labels) Less(i, j int) bool + func (ls Labels) Map() map[string]string + func (ls Labels) MarshalJSON() ([]byte, error) + func (ls Labels) MarshalYAML() (interface{}, error) + func (ls Labels) MatchLabels(on bool, names ...string) Labels + func (ls Labels) Range(f func(l Label)) + func (ls Labels) ReleaseStrings(release func(string)) + func (ls Labels) String() string + func (ls Labels) Swap(i, j int) + func (ls Labels) Validate(f func(l Label) error) error + func (ls Labels) WithoutEmpty() Labels + type MatchType int + const MatchEqual + const MatchNotEqual + const MatchNotRegexp + const MatchRegexp + func (m MatchType) String() string + type Matcher struct + Name string + Type MatchType + Value string + func MustNewMatcher(mt MatchType, name, val string) *Matcher + func NewMatcher(t MatchType, n, v string) (*Matcher, error) + func (m *Matcher) GetRegexString() string + func (m *Matcher) Inverse() (*Matcher, error) + func (m *Matcher) IsRegexOptimized() bool + func (m *Matcher) Matches(s string) bool + func (m *Matcher) Prefix() string + func (m *Matcher) SetMatches() []string + func (m *Matcher) String() string + type ScratchBuilder struct + func NewScratchBuilder(n int) ScratchBuilder + func NewScratchBuilderWithSymbolTable(_ *SymbolTable, n int) ScratchBuilder + func (b *ScratchBuilder) Add(name, value string) + func (b *ScratchBuilder) Assign(ls Labels) + func (b *ScratchBuilder) Labels() Labels + func (b *ScratchBuilder) Overwrite(ls *Labels) + func (b *ScratchBuilder) Reset() + func (b *ScratchBuilder) SetSymbolTable(_ *SymbolTable) + func (b *ScratchBuilder) Sort() + func (b *ScratchBuilder) UnsafeAddBytes(name, value []byte) + type Selector []*Matcher + func (s Selector) Matches(labels Labels) bool + type Slice []Labels + func (s Slice) Len() int + func (s Slice) Less(i, j int) bool + func (s Slice) Swap(i, j int) + type StringMatcher interface + Matches func(s string) bool + type SymbolTable struct + func NewSymbolTable() *SymbolTable + func (t *SymbolTable) Len() int v0.54.1-promotel-v1.0.0 Jan 28, 2025