func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
type GreeterClient interface { // Sends a greeting SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) }
func NewGreeterClient(cc *grpc.ClientConn) GreeterClient
type GreeterServer interface { // Sends a greeting SayHello(context.Context, *HelloRequest) (*HelloReply, error) }
The response message containing the greetings
type HelloReply struct { Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` }
func (*HelloReply) Descriptor() ([]byte, []int)
func (m *HelloReply) GetMessage() string
func (*HelloReply) ProtoMessage()
func (m *HelloReply) Reset()
func (m *HelloReply) String() string
The request message containing the user's name.
type HelloRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` }
func (*HelloRequest) Descriptor() ([]byte, []int)
func (m *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage()
func (m *HelloRequest) Reset()
func (m *HelloRequest) String() string