goa: github.com/goadesign/goa/encoding/gogoprotobuf Index | Files

package gogoprotobuf

import "github.com/goadesign/goa/encoding/gogoprotobuf"


Package Files


func NewDecoder Uses

func NewDecoder(r io.Reader) goa.Decoder

NewDecoder returns a new proto.Decoder that satisfies goa.Decoder

func NewEncoder Uses

func NewEncoder(w io.Writer) goa.Encoder

NewEncoder returns a new proto.Encoder that satisfies goa.Encoder

type ProtoDecoder Uses

type ProtoDecoder struct {
    // contains filtered or unexported fields

ProtoDecoder stores state between Reset and Decode

func (*ProtoDecoder) Decode Uses

func (dec *ProtoDecoder) Decode(v interface{}) error

Decode unmarshals an io.Reader into proto.Message v

func (*ProtoDecoder) Reset Uses

func (dec *ProtoDecoder) Reset(r io.Reader)

Reset stores the new reader and resets its bytes.Buffer and proto.Buffer

type ProtoEncoder Uses

type ProtoEncoder struct {
    // contains filtered or unexported fields

ProtoEncoder stores state between Reset and Encode

func (*ProtoEncoder) Encode Uses

func (enc *ProtoEncoder) Encode(v interface{}) error

Encode marshals a proto.Message and writes it to an io.Writer

func (*ProtoEncoder) Reset Uses

func (enc *ProtoEncoder) Reset(w io.Writer)

Reset stores the new writer and resets its proto.Buffer

Package gogoprotobuf imports 5 packages (graph). Updated 2017-10-21. Refresh now. Tools for package owners.