capnproto2

package
v0.0.0-...-28775f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDecoder

func NewDecoder(r io.Reader) goa.Decoder

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

func NewEncoder

func NewEncoder(w io.Writer) goa.Encoder

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

func NewPackedDecoder

func NewPackedDecoder(r io.Reader) goa.Decoder

NewPackedDecoder returns a new packed capnp.Decoder that satisfies goa.Decoder

func NewPackedEncoder

func NewPackedEncoder(w io.Writer) goa.Encoder

NewPackedEncoder returns a new packed capnp.Encoder that satisfies goa.Encoder

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 *capnp.Message v

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 *capnp.Message and writes it to an io.Writer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL