Versions in this module Expand all Collapse all v0 v0.3.1 Jan 12, 2017 v0.3.0 Jan 11, 2017 Changes in this version + var EmptySet = &Set + func Make(cfg *config.Config, logger zap.Logger) error + type ByPath []Metric + func (p ByPath) Len() int + func (p ByPath) Less(i, j int) bool + func (p ByPath) Swap(i, j int) + type Metric struct + Level int + ParentIndex int + Path []byte + Tags *Set + func (m *Metric) IsLeaf() uint8 + func (m *Metric) MarshalJSON() ([]byte, error) + func (m *Metric) ParentPath() []byte + type Rule struct + BytesContains []byte + BytesEqual []byte + BytesHasPrefix []byte + BytesHasSuffix []byte + Contains string + Equal string + HasPrefix string + HasSuffix string + List []string + Regexp string + Single string + Tags *Set + func (r *Rule) Match(m *Metric) + type Rules struct + Rule []Rule + func Parse(content string) (*Rules, error) + func ParseFile(filename string) (*Rules, error) + func ParseGlob(glob string) (*Rules, error) + func (r *Rules) Match(m *Metric) + type Set struct + func (s *Set) Add(tag ...string) *Set + func (s *Set) Len() int + func (s *Set) List() []string + func (s *Set) MarshalJSON() ([]byte, error) + func (s *Set) Merge(other *Set) *Set + type Tree struct + Next [256]*Tree + Rules []*Rule + func (t *Tree) Add(prefix []byte, rule *Rule) + func (t *Tree) AddSuffix(suffix []byte, rule *Rule)