MCPcopy Index your code
hub / github.com/prometheus/prometheus / Encode

Method Encode

web/api/v1/codec.go:27–27  ·  view source on GitHub ↗

Encode encodes resp, ready for transmission to an API consumer.

(resp *Response)

Source from the content-addressed store, hash-verified

25
26 // Encode encodes resp, ready for transmission to an API consumer.
27 Encode(resp *Response) ([]byte, error)
28}
29
30type MIMEType struct {

Callers 15

writeSeriesStateMethod · 0.65
EncodeMethod · 0.65
serveFunction · 0.65
TestSampledReadEndpointFunction · 0.65
TestStreamReadEndpointFunction · 0.65
EncodeReadResponseFunction · 0.65
executeReadRequestMethod · 0.65

Implementers 2

JSONCodecweb/api/v1/json_codec.go
testCodecweb/api/v1/api_test.go

Calls

no outgoing calls

Tested by 15

TestSampledReadEndpointFunction · 0.52
TestStreamReadEndpointFunction · 0.52
TestTargetURLFunction · 0.52
doSearchRequestCtxFunction · 0.52
TestGetSeriesFunction · 0.52
TestQueryExemplarsFunction · 0.52