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

Struct errDecoder

expfmt/decode.go:174–176  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

172
173// errDecoder is an error-state decoder that always returns the same error.
174type errDecoder struct {
175 err error
176}
177
178func (d *errDecoder) Decode(*dto.MetricFamily) error {
179 return d.err

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected