MCPcopy Create free account
hub / github.com/prometheus/common / Decoder

Interface Decoder

expfmt/decode.go:31–33  ·  view source on GitHub ↗

Decoder types decode an input stream into metric families.

Source from the content-addressed store, hash-verified

29
30// Decoder types decode an input stream into metric families.
31type Decoder interface {
32 Decode(*dto.MetricFamily) error
33}
34
35// DecodeOptions contains options used by the Decoder and in sample extraction.
36type DecodeOptions struct {

Callers 5

LoadTLSConfigFunction · 0.95
TestDottedEncodeFunction · 0.95
DecodeMethod · 0.65

Implementers 4

protoDecoderexpfmt/decode.go
errDecoderexpfmt/decode.go
textDecoderexpfmt/decode.go
SampleDecoderexpfmt/decode.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…