-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from Topl/BN-1018-create-g-rpc-health-check-in…
…-bifrost [BN-1018] Add gRPC Health Check Proto
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
syntax = "proto3"; | ||
|
||
package grpc.health.v1; | ||
|
||
enum ServingStatus { | ||
UNKNOWN = 0; // Default status. Indicates that no stats was returned. | ||
SERVING = 1; // Service is in a healthy state. | ||
NOT_SERVING = 2; // Service is unhealthy. Reason is implementation specific. | ||
SERVICE_UNKNOWN = 3; // Used only by the Watch method. | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto3"; | ||
|
||
package grpc.health.v1; | ||
|
||
import 'google/models/health_models.proto'; | ||
|
||
message HealthCheckRequest { | ||
string service = 1; | ||
} | ||
|
||
message HealthCheckResponse { | ||
ServingStatus status = 1; | ||
} | ||
|
||
service Health { | ||
rpc Check(HealthCheckRequest) returns (HealthCheckResponse); | ||
|
||
rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse); | ||
} |