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

Struct CustomMarshaler

runtime/handler_test.go:189–191  ·  runtime/handler_test.go::CustomMarshaler

A custom marshaler implementation, that doesn't implement the delimited interface

Source from the content-addressed store, hash-verified

187
188// A custom marshaler implementation, that doesn't implement the delimited interface
189type CustomMarshaler struct {
190 m *runtime.JSONPb
191}
192
193func (c *CustomMarshaler) Marshal(v interface{}) ([]byte, error) { return c.m.Marshal(v) }
194func (c *CustomMarshaler) Unmarshal(data []byte, v interface{}) error { return c.m.Unmarshal(data, v) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected