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 message.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

type Message Uses

type Message struct {
    Data []byte
}

func NewMessage Uses

func NewMessage(data []byte) *Message

func (*Message) Marshal Uses

func (m *Message) Marshal() ([]byte, error)

func (*Message) MarshalJSON Uses

func (m *Message) MarshalJSON() ([]byte, error)

func (*Message) ProtoMessage Uses

func (m *Message) ProtoMessage()

func (*Message) Reset Uses

func (m *Message) Reset()

func (*Message) String Uses

func (m *Message) String() string

func (*Message) Unmarshal Uses

func (m *Message) Unmarshal(data []byte) error

func (*Message) UnmarshalJSON Uses

func (m *Message) UnmarshalJSON(data []byte) error

Package proto imports 6 packages (graph) and is imported by 11 packages. Updated 2020-05-14. Refresh now. Tools for package owners.