http-envinfo 0.1.0

This package provides JSON API of health for microservice. It's using rocket framework.
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct HealthData {
    pub status: String,
    pub checks: Vec<String>,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct StartedData {
    pub status: String,
    pub endpoints: Vec<String>,
}