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

Method Encode

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

Source from the content-addressed store, hash-verified

48}
49
50func (ec encoderCloser) Encode(v *dto.MetricFamily) error {
51 return ec.encode(v)
52}
53
54func (ec encoderCloser) Close() error {
55 return ec.close()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected