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

Struct encoderCloser

expfmt/encode.go:64–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64type encoderCloser struct {
65 encode func(*dto.MetricFamily) error
66 close func() error
67}
68
69func (ec encoderCloser) Encode(v *dto.MetricFamily) error {
70 return ec.encode(v)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected