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

Struct errDecoder

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

errDecoder is an error-state decoder that always returns the same error.

Source from the content-addressed store, hash-verified

139
140// errDecoder is an error-state decoder that always returns the same error.
141type errDecoder struct {
142 err error
143}
144
145func (d *errDecoder) Decode(*dto.MetricFamily) error {
146 return d.err

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected