Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GreeterServer ¶
type GreeterServer struct {
pb.UnimplementedGreeterServer
}
GreeterServer 实现 Greeter 服务
func NewGreeterServer ¶
func NewGreeterServer() *GreeterServer
NewGreeterServer 创建一个新的 GreeterServer
func (*GreeterServer) SayHello ¶
func (s *GreeterServer) SayHello(ctx context.Context, req *pb.HelloRequest) (*pb.HelloReply, error)
SayHello 实现 SayHello RPC 方法
Click to show internal directories.
Click to hide internal directories.