MCPcopy Index your code
hub / github.com/cloudflare/ebpf_exporter / Decoder

Interface Decoder

decoder/decoder.go:20–22  ·  view source on GitHub ↗

Decoder transforms byte field value into a byte value representing string to either use as an input for another Decoder or to use as the final label value for Prometheus metrics

Source from the content-addressed store, hash-verified

18// to either use as an input for another Decoder or to use as the final
19// label value for Prometheus metrics
20type Decoder interface {
21 Decode(in []byte, conf config.Decoder) ([]byte, error)
22}
23
24// Set is a set of Decoders that may be applied to produce a label
25type Set struct {

Callers 15

decodeMethod · 0.65
testPCIMissingFunction · 0.65
testPCIPresentFunction · 0.65
ParseConfigsFunction · 0.65
NewDecoderFunction · 0.95
StackMethod · 0.95
SymMethod · 0.95
fillStackLockedMethod · 0.95
saveSymLookupLockedMethod · 0.95
StackMethod · 0.95
TestStackFunction · 0.95
DecodeMethod · 0.80

Implementers 15

KStackdecoder/kstack.go
UIntdecoder/uint.go
Stringdecoder/string.go
PCISubClassdecoder/pci_subclass.go
KSymdecoder/ksym.go
Dnamedecoder/dname.go
IfNamedecoder/ifname.go
PCIClassdecoder/pci_class.go
MajorMinordecoder/majorminor.go
CGroupdecoder/cgroup.go
Hexdecoder/hex.go
PCIVendordecoder/pci_vendor.go

Calls

no outgoing calls

Tested by

no test coverage detected