- removed: session-service - updated: moved health check out of consul registration - updated: get service info to pull the service from the default namespace for the service account - updated: the rest of the services to be able to handle the new database tables
23 lines
794 B
Rust
23 lines
794 B
Rust
fn main() {
|
|
// gRPC Server code
|
|
tonic_build::configure()
|
|
.build_server(true) // Generate gRPC server code
|
|
.compile_well_known_types(true)
|
|
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
|
|
.compile_protos(&["../proto/auth.proto"], &["../proto"])
|
|
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
|
|
|
|
// gRPC Client code
|
|
tonic_build::configure()
|
|
.build_server(false) // Generate gRPC client code
|
|
.compile_well_known_types(true)
|
|
.compile_protos(
|
|
&[
|
|
"../proto/user_db_api.proto",
|
|
"../proto/session_db_api.proto",
|
|
],
|
|
&["../proto"],
|
|
)
|
|
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
|
|
}
|