2021-01-23 15:13:08 +01:00
|
|
|
#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 {
|
2021-02-21 11:29:27 +01:00
|
|
|
const bool enable_cache{ false };
|
|
|
|
const std::size_t cache_size{ 0 };
|
|
|
|
const std::string ssl_pem_path{};
|
|
|
|
const std::string ssl_cert_path{};
|
2021-01-23 15:13:08 +01:00
|
|
|
|
2021-02-21 11:29:27 +01:00
|
|
|
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)) {}
|
2021-01-23 15:13:08 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif //GEMINISERVER_INFORMATION_HPP
|