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

package text

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

Package text reads any text/* content-type

Index

Package Files

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

Package text imports 4 packages (graph). Updated 2020-02-13. Refresh now. Tools for package owners.