22 releases (11 breaking)

0.12.3 Sep 26, 2024
0.12.1 Jul 17, 2024
0.11.0 Feb 8, 2024
0.10.2 Sep 28, 2023
0.2.0 Jul 23, 2020

#366 in Network programming

Download history 290773/week @ 2024-08-22 250431/week @ 2024-08-29 312010/week @ 2024-09-05 308937/week @ 2024-09-12 328546/week @ 2024-09-19 334586/week @ 2024-09-26 363076/week @ 2024-10-03 279804/week @ 2024-10-10 251662/week @ 2024-10-17 248790/week @ 2024-10-24 209551/week @ 2024-10-31 264936/week @ 2024-11-07 425037/week @ 2024-11-14 320902/week @ 2024-11-21 193038/week @ 2024-11-28 263957/week @ 2024-12-05

1,278,299 downloads per month
Used in 48 crates (32 directly)

MIT license

510KB
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–10MB
~102K SLoC