#include #include #include #include // Add executors here #include // Add loggers here #include #include struct Options { Pistache::IP listenAddress = Pistache::Ipv4::any(); uint16_t listenPort = 2503; size_t webThreads = 50; size_t dagThreads = 20; // Pool name -> Executor Type + nWorkers std::unordered_map> executors; // Logger Config std::vector> loggers; }; int main(int argc, char **argv) { argparse::ArgumentParser args("Daggy"); args.add_argument("-v", "--verbose"); args.add_argument("-c", "--config") .help("Config file"); args.add_argument("--ip") .help("IP address to listen to"); args.add_argument("--port") .help("Port to listen to") .action([](const std::string &value) { return std::stoi(value); }); // Set some defaults // daggy::Server endpoint(10); }