| 216 | } |
| 217 | |
| 218 | Status DoAction(const ServerCallContext& context, const Action& action, |
| 219 | std::unique_ptr<ResultStream>* result) override { |
| 220 | if (action.type == "ping") { |
| 221 | std::shared_ptr<Buffer> buf = Buffer::FromString("ok"); |
| 222 | *result = std::make_unique<SimpleResultStream>(std::vector<Result>{Result{buf}}); |
| 223 | return Status::OK(); |
| 224 | } |
| 225 | return Status::NotImplemented(action.type); |
| 226 | } |
| 227 | |
| 228 | private: |
| 229 | Location location_; |
nothing calls this directly
no test coverage detected