Namespaces | |
| namespace | anonymous_namespace{Config.cpp} |
Classes | |
| struct | Config |
Typedefs | |
| using | json = nlohmann::json |
Functions | |
| Config | load_file (const std::string &path) |
| bool | save_file (const Config &cfg, const std::string &path) |
| std::string | read_file (const std::string &path) |
| using bsc::config::json = nlohmann::json |
Definition at line 11 of file Config.cpp.
| Config bsc::config::load_file | ( | const std::string & | path | ) |
Definition at line 51 of file Config.cpp.
References bsc::config::Config::ServerConfig::address, bsc::config::Config::ServerConfig::authentication, bsc::config::Config::FwOptions::config_path, bsc::config::Config::TasksOptions::config_path, bsc::config::Config::default_action, bsc::config::Config::default_duration, bsc::config::Config::ebpf_obj_path, bsc::config::Config::RulesOptions::enable_checksums, bsc::config::Config::firewall, bsc::config::Config::InternalOptions::flush_conns_on_start, bsc::config::Config::fw_options, bsc::config::Config::InternalOptions::gc_percent, bsc::config::Config::intercept_unknown, bsc::config::Config::internal, load_file(), bsc::config::Config::ServerConfig::log_file, bsc::config::Config::log_level, bsc::config::Config::log_micro, bsc::config::Config::log_utc, bsc::config::Config::StatsOptions::max_events, bsc::config::Config::StatsOptions::max_stats, bsc::config::Config::FwOptions::monitor_interval, bsc::config::Config::RulesOptions::path, bsc::config::Config::proc_monitor_method, bsc::config::Config::FwOptions::queue_bypass, bsc::config::Config::FwOptions::queue_num, read_file(), bsc::config::Config::rules, bsc::config::Config::server, bsc::config::Config::source_path, bsc::config::Config::stats, bsc::config::Config::tasks, bsc::config::Config::ServerAuth::type, and bsc::config::Config::StatsOptions::workers.
Referenced by load_file(), and main().
| std::string bsc::config::read_file | ( | const std::string & | path | ) |
Definition at line 43 of file Config.cpp.
References read_file().
Referenced by load_file(), and read_file().
| bool bsc::config::save_file | ( | const Config & | cfg, |
| const std::string & | path ) |
Definition at line 104 of file Config.cpp.
References save_file().
Referenced by bsc::service::DaemonService::handle_notification(), and save_file().