Documentation ¶
Overview ¶
Package rpc is a generated protocol buffer package.
It is generated from these files:
msg.proto
It has these top-level messages:
Request Response
Index ¶
- Variables
- type CallHandler
- type Client
- type ClientConfig
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetBody() []byte
- func (m *Request) GetFuncID() int32
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetBody() []byte
- func (m *Response) GetErrText() string
- func (m *Response) GetIsSuccess() bool
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") )
View Source
var ErrTimeout = errors.New("timeout")
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type Request ¶
type Request struct { FuncID int32 `protobuf:"varint,1,opt,name=FuncID,proto3" json:"FuncID,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=Body,proto3" json:"Body,omitempty"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct { IsSuccess bool `protobuf:"varint,1,opt,name=IsSuccess,proto3" json:"IsSuccess,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=Body,proto3" json:"Body,omitempty"` ErrText string `protobuf:"bytes,3,opt,name=ErrText,proto3" json:"ErrText,omitempty"` }
func (*Response) Descriptor ¶
func (*Response) GetErrText ¶
func (*Response) GetIsSuccess ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type Server ¶
type Server interface { Close() Serve(handler CallHandler) }
Click to show internal directories.
Click to hide internal directories.