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

package bytes

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

Package bytes provides a bytes codec which does not encode or decode anything

Index

Package Files

bytes.go marshaler.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 Frame Uses

type Frame struct {
    Data []byte
}

Frame gives us the ability to define raw data to send over the pipes

type Marshaler Uses

type Marshaler struct{}

func (Marshaler) Marshal Uses

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

func (Marshaler) String Uses

func (n Marshaler) String() string

func (Marshaler) Unmarshal Uses

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

type Message Uses

type Message struct {
    Header map[string]string
    Body   []byte
}

Package bytes imports 5 packages (graph) and is imported by 25 packages. Updated 2019-01-20. Refresh now. Tools for package owners.