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

package protorpc

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

Package proto is a generated protocol buffer package.

It is generated from these files:

envelope.proto

It has these top-level messages:

Request
Response

Protorpc provides a net/rpc proto-rpc codec. See envelope.proto for the format.

Index

Package Files

envelope.pb.go netstring.go protorpc.go

func NewCodec Uses

func NewCodec(rwc io.ReadWriteCloser) codec.Codec

func ReadNetString Uses

func ReadNetString(r io.Reader) (data []byte, err error)

ReadNetString reads data from a big-endian netstring.

func WriteNetString Uses

func WriteNetString(w io.Writer, data []byte) (written int, err error)

WriteNetString writes data to a big-endian netstring on a Writer. Size is always a 32-bit unsigned int.

type Request Uses

type Request struct {
    ServiceMethod    *string `protobuf:"bytes,1,opt,name=service_method" json:"service_method,omitempty"`
    Seq              *uint64 `protobuf:"fixed64,2,opt,name=seq" json:"seq,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*Request) GetSeq Uses

func (m *Request) GetSeq() uint64

func (*Request) GetServiceMethod Uses

func (m *Request) GetServiceMethod() string

func (*Request) ProtoMessage Uses

func (*Request) ProtoMessage()

func (*Request) Reset Uses

func (m *Request) Reset()

func (*Request) String Uses

func (m *Request) String() string

type Response Uses

type Response struct {
    ServiceMethod    *string `protobuf:"bytes,1,opt,name=service_method" json:"service_method,omitempty"`
    Seq              *uint64 `protobuf:"fixed64,2,opt,name=seq" json:"seq,omitempty"`
    Error            *string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*Response) GetError Uses

func (m *Response) GetError() string

func (*Response) GetSeq Uses

func (m *Response) GetSeq() uint64

func (*Response) GetServiceMethod Uses

func (m *Response) GetServiceMethod() string

func (*Response) ProtoMessage Uses

func (*Response) ProtoMessage()

func (*Response) Reset Uses

func (m *Response) Reset()

func (*Response) String Uses

func (m *Response) String() string

Package protorpc imports 10 packages (graph) and is imported by 47 packages. Updated 2019-01-19. Refresh now. Tools for package owners.