MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / Encode

Method Encode

runtime/marshaler.go:31–31  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

29// Encoder encodes gRPC payloads / fields into byte sequence.
30type Encoder interface {
31 Encode(v interface{}) error
32}
33
34// DecoderFunc adapts an decoder function into Decoder.

Callers 15

TestFormatEncodeFunction · 0.95
toYAMLNodeMethod · 0.95
encodeOpenAPIFunction · 0.95
TestJSONPbEncoderFunction · 0.95
TestJSONPbEncoderFieldsFunction · 0.95
TestJSONBuiltinEncoderFunction · 0.95
TestProtoEncoderDecodertFunction · 0.95
WithHealthEndpointAtFunction · 0.65
testRequestQueryParamsFunction · 0.65
prepareRequestMethod · 0.65

Implementers 1

dummyEncoderruntime/marshaler_registry_test.go

Calls

no outgoing calls

Tested by 8

TestFormatEncodeFunction · 0.76
TestJSONPbEncoderFunction · 0.76
TestJSONPbEncoderFieldsFunction · 0.76
TestJSONBuiltinEncoderFunction · 0.76
TestProtoEncoderDecodertFunction · 0.76
testRequestQueryParamsFunction · 0.52