sysmonk::squire

Module startup

source
Expand description

Module that initializes the logger and loads the configuration into a dedicated Struct.

FunctionsΒ§

  • Verifies the strength of a password string.
  • Retrieves the environment variables and parses as the data-type specified in Config struct.
  • Initializes the logger based on the provided debug flag and cargo information.
  • load_env_vars πŸ”’
    Handler that’s responsible to parse all the env vars.
  • mandatory_vars πŸ”’
    Extracts the mandatory env vars by key and parses it as HashMap<String, String> and PathBuf
  • parse_bool πŸ”’
    Extracts the env var by key and parses it as a bool
  • parse_i64 πŸ”’
    Extracts the env var by key and parses it as a i64
  • parse_u16 πŸ”’
    Extracts the env var by key and parses it as a u16
  • parse_usize πŸ”’
    Extracts the env var by key and parses it as a usize
  • parse_vec πŸ”’
    Extracts the env var by key and parses it as a Vec<String>
  • validate_vars πŸ”’
    Validates all the required environment variables with the required settings.