MCPcopy
hub / github.com/grpc/grpc-go / errProtoCodec

Struct errProtoCodec

encoding/encoding_test.go:88–92  ·  view source on GitHub ↗

errProtoCodec wraps the proto codec and delegates to it if it is configured to return a nil error. Else, it returns the configured error.

Source from the content-addressed store, hash-verified

86// errProtoCodec wraps the proto codec and delegates to it if it is configured
87// to return a nil error. Else, it returns the configured error.
88type errProtoCodec struct {
89 name string
90 encodingErr error
91 decodingErr error
92}
93
94func (c *errProtoCodec) Marshal(v any) (mem.BufferSlice, error) {
95 if c.encodingErr != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected