// GreeterServer is the server API for Greeter service.// All implementations must embed UnimplementedGreeterServer// for forward compatibilitytype GreeterServer interface{
//protoc帮我们定义好的调用接口,我们自己的server只需要实现里面的两个方法即可SayHello(context.Context,*HelloRequest)(*HelloReply,error)MustEmbedUnimplementedGreeterServer()}// UnimplementedGreeterServer must be embedded to have forward compatible implementations.type UnimplementedGreeterServer struct{
}func(*UnimplementedGreeterServer)SayHello(context.Context,*HelloRequest)(*HelloReply,error){