34 #include "../Variable.h" 41 #include <unordered_set> 107 void load(
const std::string &filename);
109 int32_t
count() {
return _servers.size(); }
110 std::shared_ptr<Info>
get(int32_t
index) {
if (_servers.find(
index) != _servers.end())
return _servers[
index];
else return std::shared_ptr<Info>(); }
113 std::map<int32_t, std::shared_ptr<Info>> _servers;
std::string name
Definition: ServerInfo.h:63
std::string contentPath
Definition: ServerInfo.h:73
Definition: ServerInfo.h:55
ServerInfo()
Definition: ServerInfo.cpp:118
std::string contentPathUser
Definition: ServerInfo.h:75
Definition: ServerInfo.h:55
Definition: ServerInfo.h:51
int32_t cacheAssets
Definition: ServerInfo.h:83
AuthType authType
Definition: ServerInfo.h:71
std::string dhParamPath
Definition: ServerInfo.h:70
This is the base library main class.
Definition: BaseLib.h:95
std::string interface
Definition: ServerInfo.h:64
std::string address
Definition: ServerInfo.h:93
bool familyServer
Definition: ServerInfo.h:82
Definition: BaseLib.cpp:34
Definition: ServerInfo.h:55
std::string caPath
Definition: ServerInfo.h:67
uint32_t contentPathPermissions
Definition: ServerInfo.h:74
int32_t port
Definition: ServerInfo.h:65
AuthType
Definition: ServerInfo.h:55
Definition: ServerInfo.h:55
void unserialize(PVariable data)
Definition: ServerInfo.cpp:70
void init(BaseLib::SharedObjects *baseLib)
Definition: ServerInfo.cpp:129
std::shared_ptr< Variable > PVariable
Definition: PhysicalInterfaceSettings.h:41
PVariable serializedInfo
Definition: ServerInfo.h:94
Definition: ServerInfo.h:55
bool restServer
Definition: ServerInfo.h:81
std::string redirectTo
Definition: ServerInfo.h:84
AuthType websocketAuthType
Definition: ServerInfo.h:79
std::string certPath
Definition: ServerInfo.h:68
std::string contentPathGroup
Definition: ServerInfo.h:76
std::unordered_set< uint64_t > validGroups
Definition: ServerInfo.h:72
std::shared_ptr< ServerInfo::Info > PServerInfo
Definition: ServerInfo.h:118
std::string keyPath
Definition: ServerInfo.h:69
Info()
Definition: ServerInfo.h:57
std::shared_ptr< FileDescriptor > PFileDescriptor
Definition: FileDescriptorManager.h:52
PFileDescriptor socketDescriptor
Definition: ServerInfo.h:87
int32_t index
Definition: ServerInfo.h:62
Definition: ServerInfo.h:53
std::map< std::string, std::vector< std::string > > modSettings
Definition: ServerInfo.h:90
bool rpcServer
Definition: ServerInfo.h:80
bool webServer
Definition: ServerInfo.h:77
bool webSocket
Definition: ServerInfo.h:78
PVariable serialize()
Serializes the whole object except modSettings.
Definition: ServerInfo.cpp:36
int32_t count()
Definition: ServerInfo.h:109
bool ssl
Definition: ServerInfo.h:66
Definition: ServerInfo.h:55
void load(const std::string &filename)
Definition: ServerInfo.cpp:133