Expand description
§Service probe
This crate provides an easy way to start a HTTP server that can be used for making the status of a service transparent to observers. The main use case is to communicate information about the health status of a service in containerized environments.
Tasks and synchronization throughout this crate uses tokio
functionality, so the runtime must be present and running when the functions
of this crate are called.
Enums§
- The error that can happen during startup of the service probe.
- The state of a service
Constants§
- The grace period given to the probe for shutting itself down.
Functions§
- Get the state of the service.
- Set the state of the service.
- Start the probe HTTP service.
- Stop the probe HTTP service.