type ProtoMarshaller … // ContentType always returns "application/octet-stream". func (*ProtoMarshaller) ContentType(_ interface{ … } // Marshal marshals "value" into Proto func (*ProtoMarshaller) Marshal(value interface{ … } // Unmarshal unmarshals proto "data" into "value" func (*ProtoMarshaller) Unmarshal(data []byte, value interface{ … } // NewDecoder returns a Decoder which reads proto stream from "reader". func (marshaller *ProtoMarshaller) NewDecoder(reader io.Reader) Decoder { … } // NewEncoder returns an Encoder which writes proto stream into "writer". func (marshaller *ProtoMarshaller) NewEncoder(writer io.Writer) Encoder { … }