Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
rpc.proto
It has these top-level messages:
RequestContext ResponseContext
Index ¶
- func RegisterRPCServer(s *grpc.Server, srv RPCServer)
- type RPCClient
- type RPCServer
- type RequestContext
- func (*RequestContext) Descriptor() ([]byte, []int)
- func (m *RequestContext) GetHeader() string
- func (m *RequestContext) GetInput() string
- func (m *RequestContext) GetMethod() string
- func (m *RequestContext) GetService() string
- func (*RequestContext) ProtoMessage()
- func (m *RequestContext) Reset()
- func (m *RequestContext) String() string
- type ResponseContext
- func (*ResponseContext) Descriptor() ([]byte, []int)
- func (m *ResponseContext) GetHeader() string
- func (m *ResponseContext) GetResult() string
- func (m *ResponseContext) GetStatus() int32
- func (*ResponseContext) ProtoMessage()
- func (m *ResponseContext) Reset()
- func (m *ResponseContext) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRPCServer ¶
Types ¶
type RPCClient ¶
type RPCClient interface {
Request(ctx context.Context, in *RequestContext, opts ...grpc.CallOption) (*ResponseContext, error)
}
func NewRPCClient ¶
func NewRPCClient(cc *grpc.ClientConn) RPCClient
type RPCServer ¶
type RPCServer interface {
Request(context.Context, *RequestContext) (*ResponseContext, error)
}
type RequestContext ¶
type RequestContext struct { Service string `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"` Method string `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"` Header string `protobuf:"bytes,3,opt,name=header" json:"header,omitempty"` Input string `protobuf:"bytes,4,opt,name=input" json:"input,omitempty"` }
func (*RequestContext) Descriptor ¶
func (*RequestContext) Descriptor() ([]byte, []int)
func (*RequestContext) GetHeader ¶
func (m *RequestContext) GetHeader() string
func (*RequestContext) GetInput ¶
func (m *RequestContext) GetInput() string
func (*RequestContext) GetMethod ¶
func (m *RequestContext) GetMethod() string
func (*RequestContext) GetService ¶
func (m *RequestContext) GetService() string
func (*RequestContext) ProtoMessage ¶
func (*RequestContext) ProtoMessage()
func (*RequestContext) Reset ¶
func (m *RequestContext) Reset()
func (*RequestContext) String ¶
func (m *RequestContext) String() string
type ResponseContext ¶
type ResponseContext struct { Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"` Header string `protobuf:"bytes,2,opt,name=header" json:"header,omitempty"` Result string `protobuf:"bytes,3,opt,name=result" json:"result,omitempty"` }
func (*ResponseContext) Descriptor ¶
func (*ResponseContext) Descriptor() ([]byte, []int)
func (*ResponseContext) GetHeader ¶
func (m *ResponseContext) GetHeader() string
func (*ResponseContext) GetResult ¶
func (m *ResponseContext) GetResult() string
func (*ResponseContext) GetStatus ¶
func (m *ResponseContext) GetStatus() int32
func (*ResponseContext) ProtoMessage ¶
func (*ResponseContext) ProtoMessage()
func (*ResponseContext) Reset ¶
func (m *ResponseContext) Reset()
func (*ResponseContext) String ¶
func (m *ResponseContext) String() string
Click to show internal directories.
Click to hide internal directories.