()
| 51 | type passthroughCodec struct{} |
| 52 | |
| 53 | func (passthroughCodec) Name() string { return "proto" } // server already knows this one |
| 54 | func (passthroughCodec) Marshal(v interface{}) ([]byte, error) { |
| 55 | if m, ok := v.(*rawMessage); ok { |
| 56 | return m.data, nil // send bytes exactly as we received them |
no outgoing calls