Versions in this module Expand all Collapse all v1 v1.7.2 Feb 15, 2018 Changes in this version + const AlertName + const BucketLabel + const InstanceName + const MetricName + func Compare(a, b Labels) int + func Equal(ls, o Labels) bool + type Builder struct + func NewBuilder(base Labels) *Builder + func (b *Builder) Del(ns ...string) *Builder + func (b *Builder) Labels() Labels + func (b *Builder) Set(n, v string) *Builder + type Label struct + Name string + Value string + type Labels []Label + func FromMap(m map[string]string) Labels + func FromStrings(ss ...string) Labels + func New(ls ...Label) Labels + func (ls *Labels) UnmarshalJSON(b []byte) error + func (ls Labels) Copy() Labels + func (ls Labels) Get(name string) string + func (ls Labels) Hash() uint64 + 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) String() string + func (ls Labels) Swap(i, j int) + 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 NewMatcher(t MatchType, n, v string) (*Matcher, error) + func (m *Matcher) Matches(s string) bool + func (m *Matcher) String() string