Last active
March 6, 2017 01:44
-
-
Save cam-stitt/f42b2536d9c739b191154dd5bd8c23f1 to your computer and use it in GitHub Desktop.
GRPC Healthcheck
This file contains hidden or 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
syntax = "proto3"; | |
package example; | |
message HealthCheckRequest { | |
string service = 1; | |
} | |
message HealthCheckResponse { | |
enum ServingStatus { | |
UNKNOWN = 0; | |
SERVING = 1; | |
NOT_SERVING = 2; | |
} | |
ServingStatus status = 1; | |
} | |
service Example { | |
rpc Check(HealthCheckRequest) returns (HealthCheckResponse); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment