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

Interface Encoder

expfmt/encode.go:30–32  ·  view source on GitHub ↗

Encoder types encode metric families into an underlying wire protocol.

Source from the content-addressed store, hash-verified

28
29// Encoder types encode metric families into an underlying wire protocol.
30type Encoder interface {
31 Encode(*dto.MetricFamily) error
32}
33
34// Closer is implemented by Encoders that need to be closed to finalize
35// encoding. (For example, OpenMetrics needs a final `# EOF` line.)

Callers 5

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

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…