Expand description
Code to watch configuration files for any changes.
Structsยง
- Application ๐
- Internal type to represent the Arti application as a
ReconfigurableModule. - CfgMgr
- Structure to reload configuration as necessary.
- CfgMgr
Inner ๐ - Mutable part of a CfgMgr.
- Launchable
TorClient ๐ - A TorClient that we may or may not have told to start bootstrapping.
- Unlaunched
Watcher - A watcher process that we have not yet launched.
Enumsยง
- Change
Configuration Error - An error that occurred while trying to reload and/or replace our configuration
Constantsยง
- DEBOUNCE_
INTERVAL ๐ - How long to wait after an event got received, before we try to process it.
Traitsยง
- Reconfigurable
Module - An object that can be reconfigured when our configuration changes.
Functionsยง
- extract_
reconfigure_ ๐error - If possible, extract the ReconfigureError from
err. Otherwise, returnerras an internal ReconfigureError. - prepare ๐
- Find the configuration files and prepare the watcher
- reconfigure ๐
- Reload the configuration files, apply the runtime configuration, and reconfigure the client as much as we can.
- run_
watcher ๐ - Start watching for configuration changes.