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

#1108 in Network programming

Download history 15531/week @ 2023-12-23 49368/week @ 2023-12-30 93032/week @ 2024-01-06 98737/week @ 2024-01-13 105464/week @ 2024-01-20 100804/week @ 2024-01-27 110216/week @ 2024-02-03 116284/week @ 2024-02-10 84907/week @ 2024-02-17 127697/week @ 2024-02-24 113262/week @ 2024-03-02 114054/week @ 2024-03-09 115369/week @ 2024-03-16 130116/week @ 2024-03-23 137713/week @ 2024-03-30 99222/week @ 2024-04-06

504,150 downloads per month
Used in 35 crates (23 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
~89K SLoC