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

Struct DecoderWrapper

runtime/marshal_jsonpb.go:181–184  ·  view source on GitHub ↗

DecoderWrapper is a wrapper around a *json.Decoder that adds support for protos to the Decode method.

Source from the content-addressed store, hash-verified

179// DecoderWrapper is a wrapper around a *json.Decoder that adds
180// support for protos to the Decode method.
181type DecoderWrapper struct {
182 *json.Decoder
183 protojson.UnmarshalOptions
184}
185
186// Decode wraps the embedded decoder's Decode method to support
187// protos using a jsonpb.Unmarshaler.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected