// NewGRPCServer creates a gRPC server
NewGRPCServer creates a gRPC server
// NewGRPCServer creates a gRPC server
func NewGRPCServer(cfg *app.ServerConfig, svc *service.GreeterService) *grpc.Server {
	grpcServer := grpc.NewServer(
		grpc.Network("tcp"),
		grpc.Address(":9090"),
		grpc.Timeout(3*time.Second),
	)
	v1.RegisterGreeterServer(grpcServer, svc)
	return grpcServer
}
func NewGRPCServer ( cfg * app . ServerConfig , svc * service . GreeterService ) * grpc . Server { grpcServer := grpc . NewServer ( grpc . Network ( " " ) , grpc . Address ( " " ) , grpc . Timeout ( 3 * time . Second ) , ) v1 . RegisterGreeterServer ( grpcServer , svc ) return grpcServer }
NewGRPCServer creates a gRPC server
NewGRPCServer creates a gRPC server
// register biz service