msgpack

package
v0.0.0-...-a021f40 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCodec

func NewCodec(c io.ReadWriteCloser) codec.Codec

Types

type Codec

type Codec struct {
	Conn    io.ReadWriteCloser
	Encoder *msgpack.Encoder
	Decoder *msgpack.Decoder
}

func (*Codec) Close

func (c *Codec) Close() error

func (*Codec) ReadBody

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

func (*Codec) ReadHeader

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

func (*Codec) String

func (c *Codec) String() string

func (*Codec) Write

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

type Marshaller

type Marshaller struct{}

func (Marshaller) Marshal

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

func (Marshaller) String

func (m Marshaller) String() string

func (Marshaller) Unmarshal

func (m Marshaller) Unmarshal(d []byte, v interface{}) error

Jump to

Keyboard shortcuts

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