Crate config_items

Source
Expand description

A library with common configuration items and utility functions

Structs§

DefaultResolver
Default resolver that does not resolves to any alterantive/custom configuration filename
Logging
Logging configuration
Network
Networking configuration
Proxy
Proxy configuration

Traits§

CFGResolver
trait that asks for config filename (takes precedence over other guessings)

Functions§

create_log_config
Create a logging configuration
get_app_id
Get Application id
get_app_vars
Obtain defined “app” variables. Warning must be called AFTER set_app_id()!
get_config_file_name
Get name of config file resulting of various options
get_env_vars
Obtain watched environment variables. Warning must be called AFTER set_app_id()!
read_config_from_yaml
Read file into String and deserialize YAML object
set_app_id
Set the id of using app