Back to godoc.org
github.com/micro/go-micro/codec/grpc

package grpc

v1.18.0
Latest Go to latest
Published: Dec 8, 2019 | License: Apache-2.0 | Module: github.com/micro/go-micro

Overview

Package grpc provides a grpc codec

Index

func NewCodec

func NewCodec(c io.ReadWriteCloser) codec.Codec

type Codec

type Codec struct {
	Conn        io.ReadWriteCloser
	ContentType string
}

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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier