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

Struct encoderCloser

expfmt/encode.go:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45type encoderCloser struct {
46 encode func(*dto.MetricFamily) error
47 close func() error
48}
49
50func (ec encoderCloser) Encode(v *dto.MetricFamily) error {
51 return ec.encode(v)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected