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

Struct textDecoder

expfmt/decode.go:143–148  ·  view source on GitHub ↗

textDecoder implements the Decoder interface for the text protocol.

Source from the content-addressed store, hash-verified

141
142// textDecoder implements the Decoder interface for the text protocol.
143type textDecoder struct {
144 r io.Reader
145 fams map[string]*dto.MetricFamily
146 s model.ValidationScheme
147 err error
148}
149
150// Decode implements the Decoder interface.
151func (d *textDecoder) Decode(v *dto.MetricFamily) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected