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

Struct textDecoder

expfmt/decode.go:222–227  ·  view source on GitHub ↗

textDecoder implements the Decoder interface for the text protocol.

Source from the content-addressed store, hash-verified

220
221// textDecoder implements the Decoder interface for the text protocol.
222type textDecoder struct {
223 r io.Reader
224 fams map[string]*dto.MetricFamily
225 s model.ValidationScheme
226 err error
227}
228
229// Decode implements the Decoder interface.
230func (d *textDecoder) Decode(v *dto.MetricFamily) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected