Documentation ¶
Overview ¶
Package proto implements a marshaler interface for protocol buffers.
Index ¶
- type Proto
- func (p *Proto) ContentTypes() []string
- func (*Proto) Decode(data []byte, value interface{}) error
- func (p *Proto) Decodes(v any) bool
- func (*Proto) Encode(value interface{}) ([]byte, error)
- func (p *Proto) Encodes(v any) bool
- func (p *Proto) Exts() []string
- func (p *Proto) NewDecoder(reader io.Reader) codecs.Decoder
- func (p *Proto) NewEncoder(writer io.Writer) codecs.Encoder
- func (p *Proto) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proto ¶
type Proto struct{}
Proto is a proto marshaler that can encode and decode protocol buffers.
func (*Proto) ContentTypes ¶
ContentTypes returns the list of content types this marshaller is able to handle.
func (*Proto) NewDecoder ¶
NewDecoder returns a Decoder which reads proto stream from "reader".
func (*Proto) NewEncoder ¶
NewEncoder returns an Encoder which writes proto stream into "writer".
Click to show internal directories.
Click to hide internal directories.