MCPcopy Create free account
hub / github.com/prometheus/prometheus / CanEncode

Method CanEncode

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

CanEncode determines if this Codec can encode resp.

(resp *Response)

Source from the content-addressed store, hash-verified

22
23 // CanEncode determines if this Codec can encode resp.
24 CanEncode(resp *Response) bool
25
26 // Encode encodes resp, ready for transmission to an API consumer.
27 Encode(resp *Response) ([]byte, error)

Callers 1

negotiateCodecMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected