1234567891011121314151617181920212223242526272829303132333435 |
- /**
- * @project Project
- * @brief TODO: add a brief
- * @author lz
- * @data 2023/7/11
- **/
- #pragma once
- #include "defines.hpp"
- #include "rabbitmq/executor_mq.hpp"
- class ExecutorTest: public ExecutorRabbitmq {
- public:
- static int test(int argc, char** agrv) {
- auto iter = ExecutorRabbitmq::iter();
- iter->connect();
- iter->addListen("exe_test", &func());
- LOG(INFO) << iter->size();
- return true;
- }
- static Error_manager func1(const std::string &in, std::string &out) {
- }
- static Error_manager func2(const std::string &in, std::string &out) {
- }
- typedef Error_manager (*MessageHandler)(const std::string &in, std::string &out);
- MessageHandler handle[] {
- &func1(),
- &func2()
- };
- };
|