20 releases (11 breaking)

new 0.12.1 Jul 17, 2024
0.11.0 Feb 8, 2024
0.10.2 Sep 28, 2023
0.9.2 Apr 17, 2023
0.2.0 Jul 23, 2020

#1015 in Network programming

Download history 147407/week @ 2024-03-29 117243/week @ 2024-04-05 128033/week @ 2024-04-12 129466/week @ 2024-04-19 129413/week @ 2024-04-26 116988/week @ 2024-05-03 140738/week @ 2024-05-10 149692/week @ 2024-05-17 137384/week @ 2024-05-24 151728/week @ 2024-05-31 171859/week @ 2024-06-07 136934/week @ 2024-06-14 141072/week @ 2024-06-21 144760/week @ 2024-06-28 151419/week @ 2024-07-05 123157/week @ 2024-07-12

591,153 downloads per month
Used in 39 crates (25 directly)

MIT license

505KB
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

~4–6MB
~104K SLoC