Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
30
type
MIMEType
struct
{
Callers
15
writeSeriesState
Method · 0.65
TestBlockClosingBlockedDuringRemoteRead
Function · 0.65
Encode
Method · 0.65
serve
Function · 0.65
TestSampledReadEndpoint
Function · 0.65
BenchmarkStreamReadEndpoint
Function · 0.65
TestStreamReadEndpoint
Function · 0.65
EncodeReadResponse
Function · 0.65
sampledResponseHTTPHandler
Function · 0.65
delayedResponseHTTPHandler
Function · 0.65
createSampledResponseHandler
Function · 0.65
executeReadRequest
Method · 0.65
Implementers
2
JSONCodec
web/api/v1/json_codec.go
testCodec
web/api/v1/api_test.go
Calls
no outgoing calls
Tested by
15
TestBlockClosingBlockedDuringRemoteRead
Function · 0.52
TestSampledReadEndpoint
Function · 0.52
BenchmarkStreamReadEndpoint
Function · 0.52
TestStreamReadEndpoint
Function · 0.52
sampledResponseHTTPHandler
Function · 0.52
delayedResponseHTTPHandler
Function · 0.52
createSampledResponseHandler
Function · 0.52
prepareTestEncodedCounter
Function · 0.52
TestTargetURL
Function · 0.52
doSearchRequestCtx
Function · 0.52
TestGetSeries
Function · 0.52
TestQueryExemplars
Function · 0.52