Debian Codegraph @

metrics/legacy_label_strategy.go

raw symbols SCIP
1 package metrics
2
3 import "github.com/czerwonk/bird_exporter/protocol"
4
5 type LegacyLabelStrategy struct {
6 }
7
8 func NewLegacyLabelStrategy() *LegacyLabelStrategy {
9 return &LegacyLabelStrategy{}
10 }
11
12 func (*LegacyLabelStrategy) LabelNames(p *protocol.Protocol) []string {
13 return []string{"name"}
14 }
15
16 func (*LegacyLabelStrategy) LabelValues(p *protocol.Protocol) []string {
17 return []string{p.Name}
18 }