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

Method Encode

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

Source from the content-addressed store, hash-verified

48// Encoder types encode metric families into an underlying wire protocol.
49type Encoder interface {
50 Encode(*dto.MetricFamily) error
51}
52
53// Closer is implemented by Encoders that need to be closed to finalize

Callers 6

TestEncodeFunction · 0.95
TestEscapedEncodeFunction · 0.95
TestDottedEncodeFunction · 0.95
EncodeCertificateFunction · 0.65
EncodeKeyFunction · 0.65

Implementers 1

encoderCloserexpfmt/encode.go

Calls

no outgoing calls

Tested by 4

TestEncodeFunction · 0.76
TestEscapedEncodeFunction · 0.76
TestDottedEncodeFunction · 0.76