Module sentinel_core::api
source · [−]Expand description
Sentinel API
mod api provides the topmost fundamental APIs for users using sentinel-core.
Users must initialize Sentinel before loading Sentinel rules. Sentinel support three ways to perform initialization:
init_default(), using default config to initialize.init_with_config(config_entity: config::Entity), using customized config Entity to initialize.init_with_config_file(config_path: String), using yaml file to initialize. For the examples, visit the Sentinel repository