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

Struct encoderCloser

expfmt/encode.go:101–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101type encoderCloser struct {
102 encode func(*dto.MetricFamily) error
103 close func() error
104}
105
106func (ec encoderCloser) Encode(v *dto.MetricFamily) error {
107 return ec.encode(v)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected