/
uzer_007
/
reindexer
Обзор
Документация
Войти
/
uzer_007
/
reindexer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
cpp_src/server/server.h
36 строк
752 B
APl
Update to version v5.6.0
29 авг 2025, 17:01
29 авг 2025, 17:01
0a131de
Код
Авторство
О чём код?
#pragma once #include <memory> #include <string> #include "config.h" #include "tools/errors.h" namespace reindexer_server { using reindexer::Error; class ServerImpl; class DBManager; class [[nodiscard]] Server { public: Server(ServerMode mode = ServerMode::Builtin); ~Server(); Error InitFromCLI(int argc, char* argv[]); Error InitFromYAML(const std::string& yaml); Error InitFromFile(const char* filepath); int Start(); void Stop(); void EnableHandleSignals(bool enable = true) noexcept; DBManager& GetDBManager() noexcept; bool IsReady() const noexcept; bool IsRunning() const noexcept; void ReopenLogFiles(); std::string GetCoreLogPath() const; protected: std::unique_ptr<ServerImpl> impl_; }; } // namespace reindexer_server