Documentation ¶
Overview ¶
Package demo is a generated protocol buffer package.
It is generated from these files:
demo.proto
It has these top-level messages:
EchoReq EchoResp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDemoServer ¶
func RegisterDemoServer(s *grpc.Server, srv DemoServer)
Types ¶
type Client ¶
type Client struct { ServerAddr string GRPCConn *grpc.ClientConn GRPCClient DemoClient }
Client is a Demo Client
type DemoClient ¶
type DemoClient interface {
Echo(ctx context.Context, in *EchoReq, opts ...grpc.CallOption) (*EchoResp, error)
}
func NewDemoClient ¶
func NewDemoClient(cc *grpc.ClientConn) DemoClient
type EchoReq ¶
type EchoReq struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*EchoReq) Descriptor ¶
func (*EchoReq) GetMessage ¶
func (*EchoReq) ProtoMessage ¶
func (*EchoReq) ProtoMessage()
type EchoResp ¶
type EchoResp struct {
Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*EchoResp) Descriptor ¶
func (*EchoResp) ProtoMessage ¶
func (*EchoResp) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.