Skip to main content

Module reload_cfg

Module reload_cfg 

Source
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.
CfgMgrInner ๐Ÿ”’
Mutable part of a CfgMgr.
LaunchableTorClient ๐Ÿ”’
A TorClient that we may or may not have told to start bootstrapping.
UnlaunchedWatcher
A watcher process that we have not yet launched.

Enumsยง

ChangeConfigurationError
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ยง

ReconfigurableModule
An object that can be reconfigured when our configuration changes.

Functionsยง

extract_reconfigure_error ๐Ÿ”’
If possible, extract the ReconfigureError from err. Otherwise, return err as 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.