diff options
author | Andrew Hauck <[email protected]> | 2024-08-09 09:12:23 -0700 |
---|---|---|
committer | Andrew Hauck <[email protected]> | 2024-08-09 09:12:23 -0700 |
commit | 4ee1e907c11f61f0c8fccd40c01d9d1bd1c69c36 (patch) | |
tree | d45d30fdb1ccb7ddd1ba2bf744c9e249e0b5ef43 | |
parent | ec775a64fa20708d74f750a9792aeda4a025d89d (diff) | |
download | pingora-bleeper-andrewhauck-f123f5e43e.tar.gz pingora-bleeper-andrewhauck-f123f5e43e.zip |
Add documentation on HealthObserve traitbleeper-andrewhauck-f123f5e43e
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-load-balancing/src/health_check.rs | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1 +1 @@ -36269b8823b23381398508138bbab33c03ba7681
\ No newline at end of file +f123f5e43e9ada31a0e541b917ea674527fd06a3
\ No newline at end of file diff --git a/pingora-load-balancing/src/health_check.rs b/pingora-load-balancing/src/health_check.rs index b02776d..ac63579 100644 --- a/pingora-load-balancing/src/health_check.rs +++ b/pingora-load-balancing/src/health_check.rs @@ -24,6 +24,8 @@ use pingora_http::{RequestHeader, ResponseHeader}; use std::sync::Arc; use std::time::Duration; +/// [HealthObserve] is an interface for observing health changes of backends, +/// this is what's used for our health observation callback. #[async_trait] pub trait HealthObserve { /// Observes the health of a [Backend], can be used for monitoring purposes. |