| 65 | // gRPC service |
| 66 | class HelloWorldServiceImpl : public HelloWorldService::Service { |
| 67 | grpc::Status SayHello(grpc::ServerContext* ctx, const HelloRequest* request, |
| 68 | HelloResponse* reply) override { |
| 69 | const std::string& name = request->name(); |
| 70 | if (name.empty()) { |
| 71 | return grpc::Status(grpc::StatusCode::INVALID_ARGUMENT, "Must provide a name!"); |
| 72 | } |
| 73 | reply->set_reply("Hello, " + name); |
| 74 | return grpc::Status::OK; |
| 75 | } |
| 76 | }; |
| 77 | |
| 78 | arrow::Status RunFlightGrpc() { |