MCPcopy
hub / github.com/connectrpc/connect-go / Marshal

Method Marshal

protocol_connect.go:987–997  ·  view source on GitHub ↗
(message any)

Source from the content-addressed store, hash-verified

985}
986
987func (m *connectUnaryRequestMarshaler) Marshal(message any) *Error {
988 if m.enableGet {
989 if m.stableCodec == nil && !m.getUseFallback {
990 return errorf(CodeInternal, "codec %s doesn't support stable marshal; can't use get", m.codec.Name())
991 }
992 if m.stableCodec != nil {
993 return m.marshalWithGet(message)
994 }
995 }
996 return m.connectUnaryMarshaler.Marshal(message)
997}
998
999func (m *connectUnaryRequestMarshaler) marshalWithGet(message any) *Error {
1000 // TODO(jchadwick-buf): This function is mostly a superset of

Callers

nothing calls this directly

Calls 4

marshalWithGetMethod · 0.95
errorfFunction · 0.85
NameMethod · 0.65
MarshalMethod · 0.65

Tested by

no test coverage detected