连接器客户端
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "http_server.hpp"
|
||||
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
namespace connector {
|
||||
|
||||
class ConnectorService {
|
||||
public:
|
||||
bool start(std::string& error);
|
||||
void stop();
|
||||
bool running() const { return server_.running(); }
|
||||
|
||||
private:
|
||||
HttpResponse handle(const HttpRequest& request);
|
||||
HttpServer server_;
|
||||
std::mutex config_mutex_;
|
||||
std::mutex conversion_mutex_;
|
||||
};
|
||||
|
||||
} // namespace connector
|
||||
Reference in New Issue
Block a user