| 72 | } |
| 73 | |
| 74 | ananas::Future<std::pair<bool, std::string>> AFCConsulModule::DelKeyValue(const std::string& key) |
| 75 | { |
| 76 | ananas::Promise<std::pair<bool, std::string>> promise; |
| 77 | if (key.empty()) |
| 78 | { |
| 79 | promise.SetValue(std::make_pair(false, std::string())); |
| 80 | return promise.GetFuture(); |
| 81 | } |
| 82 | |
| 83 | std::string url = KV_API + key; |
| 84 | return m_pHttpClientModule->AsyncRequest( |
| 85 | brynet::net::http::HttpRequest::HTTP_METHOD::HTTP_METHOD_DELETE, consul_ip_, consul_port_, url); |
| 86 | } |
| 87 | |
| 88 | ananas::Future<std::pair<bool, std::string>> AFCConsulModule::GetHealthServices( |
| 89 | const std::string& service_name, const std::string& tag_filter) |
nothing calls this directly
no test coverage detected