Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hello_proto protoreflect.FileDescriptor
View Source
var ServiceDesc = _Hello_serviceDesc
Functions ¶
func RegisterHelloServer ¶
func RegisterHelloServer(s *grpc.Server, srv HelloServer)
Types ¶
type HelloClient ¶
type HelloClient interface {
Say(ctx context.Context, in *SayReq, opts ...grpc.CallOption) (*SayRsp, error)
}
HelloClient is the client API for Hello service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHelloClient ¶
func NewHelloClient(cc grpc.ClientConnInterface) HelloClient
type HelloServer ¶
HelloServer is the server API for Hello service.
type SayReq ¶
type SayReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SayReq) Descriptor
deprecated
func (*SayReq) ProtoMessage ¶
func (*SayReq) ProtoMessage()
func (*SayReq) ProtoReflect ¶
func (x *SayReq) ProtoReflect() protoreflect.Message
type SayRsp ¶
type SayRsp struct { Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"` // contains filtered or unexported fields }
func (*SayRsp) Descriptor
deprecated
func (*SayRsp) ProtoMessage ¶
func (*SayRsp) ProtoMessage()
func (*SayRsp) ProtoReflect ¶
func (x *SayRsp) ProtoReflect() protoreflect.Message
type UnimplementedHelloServer ¶
type UnimplementedHelloServer struct { }
UnimplementedHelloServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.