Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
echo.proto
It has these top-level messages:
EchoReq EchoRsp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEchoServiceServer ¶
func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
Types ¶
type EchoReq ¶
type EchoReq struct {
EchoData string `protobuf:"bytes,1,opt,name=echo_data,json=echoData" json:"echo_data,omitempty"`
}
func (*EchoReq) Descriptor ¶
func (*EchoReq) GetEchoData ¶
func (*EchoReq) ProtoMessage ¶
func (*EchoReq) ProtoMessage()
type EchoRsp ¶
type EchoRsp struct {
EchoData string `protobuf:"bytes,1,opt,name=echo_data,json=echoData" json:"echo_data,omitempty"`
}
func (*EchoRsp) Descriptor ¶
func (*EchoRsp) GetEchoData ¶
func (*EchoRsp) ProtoMessage ¶
func (*EchoRsp) ProtoMessage()
type EchoServiceClient ¶
type EchoServiceClient interface {
Echo(ctx context.Context, in *EchoReq, opts ...grpc.CallOption) (*EchoRsp, error)
}
func NewEchoServiceClient ¶
func NewEchoServiceClient(cc *grpc.ClientConn) EchoServiceClient
Click to show internal directories.
Click to hide internal directories.