grpc_gateway 0.1.4

A GRPC Gateway which handle the http request and convert into GRPC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#[derive(Debug, Clone)]
pub enum AuthType {
    APIKey { header_name: String, value: String },
    JWTToken { header_name: String, value: String },
}
#[derive(Debug, Clone)]
pub struct InternalAuthConfig {
    pub auth_type: AuthType,
}

#[derive(Debug, Clone)]
pub struct ServiceConfig {
    pub endpoint: String,
    pub service_name: String,
    pub auth_config: Option<InternalAuthConfig>,
}