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

#947 in Network programming

Download history 106719/week @ 2024-01-23 100036/week @ 2024-01-30 113897/week @ 2024-02-06 104753/week @ 2024-02-13 99693/week @ 2024-02-20 127031/week @ 2024-02-27 112677/week @ 2024-03-05 116224/week @ 2024-03-12 112551/week @ 2024-03-19 134338/week @ 2024-03-26 131906/week @ 2024-04-02 122810/week @ 2024-04-09 127213/week @ 2024-04-16 132834/week @ 2024-04-23 122431/week @ 2024-04-30 99192/week @ 2024-05-07

503,410 downloads per month
Used in 36 crates (24 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