Pcornat
23246d0d9d
Compilation and linker flags for spdlog are changed to be usable with clang and the project. Another default logger is made in the main.cpp Correction in README.md and format.
23 lines
684 B
C++
23 lines
684 B
C++
#ifndef GEMINISERVER_INFORMATION_HPP
|
|
#define GEMINISERVER_INFORMATION_HPP
|
|
|
|
namespace gemini {
|
|
/**
|
|
* \brief This struct is used to store information inside, used by any other class/struct.
|
|
*/
|
|
struct Information {
|
|
const bool enable_cache{ false };
|
|
const std::size_t cache_size{ 0 };
|
|
const std::string ssl_pem_path{};
|
|
const std::string ssl_cert_path{};
|
|
|
|
Information() = default;
|
|
|
|
Information(const bool enableCache, const size_t cacheSize, std::string sslPemPath, std::string sslCertPath) :
|
|
enable_cache(enableCache), cache_size(cacheSize), ssl_pem_path(std::move(sslPemPath)), ssl_cert_path(std::move(sslCertPath)) {}
|
|
};
|
|
}
|
|
|
|
|
|
#endif //GEMINISERVER_INFORMATION_HPP
|