ReCodEx - Task Broker
ReCodEx is complex programmer testing solution, primary targeted to technical universities. It's highly customizable and based on modern technologies.
status_notifier_handler.h
1 #ifndef RECODEX_BROKER_STATUS_NOTIFIER_HANDLER_H
2 #define RECODEX_BROKER_STATUS_NOTIFIER_HANDLER_H
3 
4 #include <memory>
5 #include <spdlog/logger.h>
6 
7 #include "../config/notifier_config.h"
8 #include "../notifier/status_notifier.h"
9 #include "../reactor/handler_interface.h"
10 
15 {
16 public:
20  static const std::string TYPE_ERROR;
21 
25  static const std::string TYPE_JOB_STATUS;
26 
31  status_notifier_handler(const notifier_config &config, std::shared_ptr<spdlog::logger> logger);
32 
33  void on_request(const message_container &message, response_cb respond);
34 
35 private:
39  const notifier_config config_;
40 
44  std::shared_ptr<spdlog::logger> logger_;
45 };
46 
47 #endif // RECODEX_BROKER_STATUS_NOTIFIER_HANDLER_H
std::function< void(const message_container &)> response_cb
void on_request(const message_container &message, response_cb respond)
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)