pipebuilder_common 0.2.2

lib for pipebuilder components
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::grpc::health::{self, health_server};
use tonic::Response;

#[derive(Default)]
pub struct HealthService {}

#[tonic::async_trait]
impl health_server::Health for HealthService {
    async fn health(
        &self,
        _request: tonic::Request<health::HealthRequest>,
    ) -> Result<tonic::Response<health::HealthResponse>, tonic::Status> {
        Ok(Response::new(health::HealthResponse {}))
    }
}