Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDecoder ¶
NewDecoder returns a new proto.Decoder that satisfies goa.Decoder
Types ¶
type ProtoDecoder ¶
type ProtoDecoder struct {
// contains filtered or unexported fields
}
ProtoDecoder stores state between Reset and Decode
func (*ProtoDecoder) Decode ¶
func (dec *ProtoDecoder) Decode(v interface{}) error
Decode unmarshals an io.Reader into proto.Message v
func (*ProtoDecoder) Reset ¶
func (dec *ProtoDecoder) Reset(r io.Reader)
Reset stores the new reader and resets its bytes.Buffer and proto.Buffer
type ProtoEncoder ¶
type ProtoEncoder struct {
// contains filtered or unexported fields
}
ProtoEncoder stores state between Reset and Encode
func (*ProtoEncoder) Encode ¶
func (enc *ProtoEncoder) Encode(v interface{}) error
Encode marshals a proto.Message and writes it to an io.Writer
func (*ProtoEncoder) Reset ¶
func (enc *ProtoEncoder) Reset(w io.Writer)
Reset stores the new writer and resets its proto.Buffer
Click to show internal directories.
Click to hide internal directories.