Expand description
Configuration module for WireMan.
This module provides functionality for defining and reading the configuration
for WireMan. The config file is read from a JSON file to customize WireMan.
The config contains:
includes: A list of include directories forgRPC.files: A list of .proto files to include.serverdefault_address: The default address of thegRPCserver.default_auth_header: The default authentication header.
historydirectory: The folder path where the history should be kept
Re-exports§
pub use config::Config;
Modules§
Constants§
- CONFIG_
FNAME - The wireman config filename
- DEFAULT_
CONFIG_ DIR - The default wireman config directory.
TODO: Use the
config_dircrate to determine the default based on the operating system - ENV_
CONFIG_ DIR - This env is used to read the path for the
WireManconfig. If it is not set, the config is expected in the current directory.
Functions§
- init_
from_ env - Initializes the
Configfrom environment variables