18 releases (10 breaking)

0.11.0 Feb 8, 2024
0.10.2 Sep 28, 2023
0.9.2 Apr 17, 2023
0.9.0 Mar 31, 2023
0.2.0 Jul 23, 2020

#1960 in Asynchronous

Download history 101070/week @ 2024-01-31 112596/week @ 2024-02-07 98222/week @ 2024-02-14 109211/week @ 2024-02-21 124787/week @ 2024-02-28 113276/week @ 2024-03-06 116278/week @ 2024-03-13 111644/week @ 2024-03-20 137905/week @ 2024-03-27 128266/week @ 2024-04-03 127388/week @ 2024-04-10 130895/week @ 2024-04-17 130090/week @ 2024-04-24 119283/week @ 2024-05-01 129691/week @ 2024-05-08 109211/week @ 2024-05-15

518,546 downloads per month
Used in 38 crates (25 directly)

MIT license

485KB
10K SLoC

tonic-health

A tonic based gRPC healthcheck implementation. It closely follows the official health checking protocol, although it may not implement all features described in the specs.

Please follow the example in the main repo to see how it works.

Features

  • transport: Provides the ability to set the service by using the type system and the NamedService trait. You can use it like that:
    let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
    let client = HealthClient::new(conn);

lib.rs:

A tonic based gRPC healthcheck implementation.

Example

An example can be found here.

Dependencies

~3.5–5.5MB
~88K SLoC