Module sentinel_core::api::init
source · [−]Expand description
Initialization func initialize the Sentinel’s runtime environment, including:
- override global config, from manually config or yaml file or env variable
- initialize global logger
- initiate core component async task, including: metric log, system statistic…
Functions
init_default initializes Sentinel using the configuration from system
environment and the default value.
init_with_config initializes Sentinel using given config.
Init loads Sentinel general configuration from the given YAML file and initializes Sentinel.