Module config

Source
Expand description

The Config module enables a configuration module Like a global API to access config details

Structs§

Config
Library input is the default API input The CLI turns its arguments into a LibraryInput struct The Config object is a default configuration object For the entire program It’s access using a variable like configuration

Functions§

create_default_config_file
Create a default config file at the specified path
get_config
Get the global config. This will return default config if the config wasn’t already initialized
get_config_file_into_struct
Get configuration from file or create default if it doesn’t exist
get_config_file_path
Get the path to the Ares config file
load_wordlist
Loads a wordlist from a file into a HashSet for efficient lookups Uses memory mapping for large files to improve performance and memory usage
set_global_config
To initialize global config with custom values