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

Struct textDecoder

expfmt/decode.go:119–123  ·  view source on GitHub ↗

textDecoder implements the Decoder interface for the text protocol.

Source from the content-addressed store, hash-verified

117
118// textDecoder implements the Decoder interface for the text protocol.
119type textDecoder struct {
120 r io.Reader
121 fams map[string]*dto.MetricFamily
122 err error
123}
124
125// Decode implements the Decoder interface.
126func (d *textDecoder) Decode(v *dto.MetricFamily) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected