mirror of
https://github.com/cloudflare/pingora.git
synced 2024-09-20 02:31:35 +02:00
Add documentation on HealthObserve trait
This commit is contained in:
parent
ec775a64fa
commit
4ee1e907c1
2 changed files with 3 additions and 1 deletions
2
.bleep
2
.bleep
|
@ -1 +1 @@
|
||||||
36269b8823b23381398508138bbab33c03ba7681
|
f123f5e43e9ada31a0e541b917ea674527fd06a3
|
|
@ -24,6 +24,8 @@ use pingora_http::{RequestHeader, ResponseHeader};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::time::Duration;
|
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]
|
#[async_trait]
|
||||||
pub trait HealthObserve {
|
pub trait HealthObserve {
|
||||||
/// Observes the health of a [Backend], can be used for monitoring purposes.
|
/// Observes the health of a [Backend], can be used for monitoring purposes.
|
||||||
|
|
Loading…
Reference in a new issue