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

Method Encode

expfmt/encode.go:106–108  ·  view source on GitHub ↗
(v *dto.MetricFamily)

Source from the content-addressed store, hash-verified

104}
105
106func (ec encoderCloser) Encode(v *dto.MetricFamily) error {
107 return ec.encode(v)
108}
109
110func (ec encoderCloser) Close() error {
111 return ec.close()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected