4 #include "../helpers/curl.h" 5 #include "status_notifier_handler.h" 11 : config_(config), logger_(logger)
17 std::string type =
"";
19 helpers::curl_params params;
21 auto it = std::begin(message.
data);
23 while (it != std::end(message.
data)) {
24 const std::string &key = *it;
25 const std::string &value = *(it + 1);
29 }
else if (key ==
"id") {
52 logger_->emerg() <<
"curl failed: " << exception.
what();
std::function< void(const message_container &)> response_cb
void on_request(const message_container &message, response_cb respond)
virtual const char * what() const noexcept
static const std::string TYPE_ERROR
static const std::string TYPE_JOB_STATUS
status_notifier_handler(const notifier_config &config, std::shared_ptr< spdlog::logger > logger)
std::vector< std::string > data