omp-rpc 0.1.0

gRPC transport, handshake, health, TLS, and Unix-socket plumbing for omp
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Standard gRPC health service integration.

use tonic_health::pb::health_server::{Health, HealthServer};
pub use tonic_health::server::HealthReporter;

/// Create a standard `grpc.health.v1` reporter and service.
///
/// Liveness is exposed through `grpc.health.v1.Health/Check`. Servers set
/// global or per-service serving status through the returned
/// [`HealthReporter`].
pub fn health_service() -> (HealthReporter, HealthServer<impl Health>) {
	tonic_health::server::health_reporter()
}