Skip to main content

Crate bestool_alertd

Crate bestool_alertd 

Source

Re-exports§

pub use backup::BackupRegistry;
pub use backup::BackupRunner;
pub use backup::BackupTask;
pub use backup::RunningBackup;
pub use tasks::BackgroundTask;
pub use tasks::TaskContext;
pub use tasks::TaskEndpoint;
pub use tasks::TaskEndpointResponse;
pub use bestool_canopy as canopy;

Modules§

backup
Backup run registry and the on-demand run endpoint.
commands
Clients for the daemon’s control HTTP API.
doctor
http_server
HTTP server for alertd daemon control and metrics.
tasks

Structs§

DaemonConfig
Configuration for the alertd daemon
InternalContext
Shared resources the daemon holds for the lifetime of the process and hands to background tasks and HTTP endpoints.
Redacted
Wraps a sensitive value so its Debug output doesn’t leak the contents.
RestartTrigger
A handle a background task can use to ask the daemon to restart itself.

Constants§

VERSION
The version of the alertd library

Functions§

http_builder
Base builder for alertd’s outbound HTTP clients. Call sites add their own timeouts etc. Canopy sets its own User-Agent, so this one applies to alertd’s other requests.
http_client
A built reqwest::Client from http_builder.
run
run_with_shutdown