mirror of
https://gitlab.com/mobicoop/v3/service/ad.git
synced 2026-01-10 21:02:41 +00:00
fix health
This commit is contained in:
21
src/health.proto
Normal file
21
src/health.proto
Normal file
@@ -0,0 +1,21 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package health;
|
||||
|
||||
|
||||
service Health {
|
||||
rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
|
||||
}
|
||||
|
||||
message HealthCheckRequest {
|
||||
string service = 1;
|
||||
}
|
||||
|
||||
message HealthCheckResponse {
|
||||
enum ServingStatus {
|
||||
UNKNOWN = 0;
|
||||
SERVING = 1;
|
||||
NOT_SERVING = 2;
|
||||
}
|
||||
ServingStatus status = 1;
|
||||
}
|
||||
@@ -14,10 +14,7 @@ async function bootstrap() {
|
||||
package: ['ad', 'health'],
|
||||
protoPath: [
|
||||
join(__dirname, 'modules/ad/interface/grpc-controllers/ad.proto'),
|
||||
join(
|
||||
__dirname,
|
||||
'modules/health/interface/grpc-controllers/health.proto',
|
||||
),
|
||||
join(__dirname, 'health.proto'),
|
||||
],
|
||||
url: `${process.env.SERVICE_URL}:${process.env.SERVICE_PORT}`,
|
||||
loader: { keepCase: true },
|
||||
|
||||
Reference in New Issue
Block a user