go-micro: github.com/micro/go-micro/codec/proto Index | Files

package proto

import "github.com/micro/go-micro/codec/proto"

Package proto provides a proto codec

Index

Package Files

marshaler.go proto.go

func NewCodec Uses

func NewCodec(c io.ReadWriteCloser) codec.Codec

type Codec Uses

type Codec struct {
    Conn io.ReadWriteCloser
}

func (*Codec) Close Uses

func (c *Codec) Close() error

func (*Codec) ReadBody Uses

func (c *Codec) ReadBody(b interface{}) error

func (*Codec) ReadHeader Uses

func (c *Codec) ReadHeader(m *codec.Message, t codec.MessageType) error

func (*Codec) String Uses

func (c *Codec) String() string

func (*Codec) Write Uses

func (c *Codec) Write(m *codec.Message, b interface{}) error

type Marshaler Uses

type Marshaler struct{}

func (Marshaler) Marshal Uses

func (Marshaler) Marshal(v interface{}) ([]byte, error)

func (Marshaler) String Uses

func (Marshaler) String() string

func (Marshaler) Unmarshal Uses

func (Marshaler) Unmarshal(data []byte, v interface{}) error

Package proto imports 4 packages (graph) and is imported by 12 packages. Updated 2019-06-09. Refresh now. Tools for package owners.