NAWA 0.9
Web Application Framework for C++
nawarun.h File Reference

Definitions for the nawarun implementation. More...

#include <memory>
#include <nawa/internal/fwdecl.h>
#include <optional>
#include <string>
#include <tuple>
#include <unistd.h>
#include <vector>

Go to the source code of this file.

Classes

struct  nawarun::Parameters
 

Namespaces

namespace  nawarun
 

Typedefs

using nawarun::PrivilegeDowngradeData = std::tuple< uid_t, gid_t, std::vector< gid_t > >
 
using nawarun::init_t = int(nawa::AppInit &)
 
using nawarun::handleRequest_t = int(nawa::Connection &)
 

Functions

unsigned int nawarun::getConcurrency (nawa::Config const &config)
 
std::pair< init_t *, std::shared_ptr< nawa::HandleRequestFunctionWrapper > > nawarun::loadAppFunctions (nawa::Config const &config)
 
void nawarun::reload (int signum)
 
std::optional< PrivilegeDowngradeDatanawarun::preparePrivilegeDowngrade (nawa::Config const &config)
 
void nawarun::replaceLogger (nawa::Log const &log)
 
Parameters nawarun::parseCommandLine (int argc, char **argv)
 
int nawarun::run (Parameters const &parameters)
 

Detailed Description

Definitions for the nawarun implementation.

Definition in file nawarun.h.


Class Documentation

◆ nawarun::Parameters

struct nawarun::Parameters

Definition at line 38 of file nawarun.h.

Class Members
typedef pair< string, string > ConfigOptionId
typedef pair< ConfigOptionId, string > ConfigOverride
Class Members
optional< string > configFile
vector< ConfigOverride > configOverrides