Skip to content

Instantly share code, notes, and snippets.

@cam-stitt
Last active March 6, 2017 01:44
Show Gist options
  • Save cam-stitt/f42b2536d9c739b191154dd5bd8c23f1 to your computer and use it in GitHub Desktop.
Save cam-stitt/f42b2536d9c739b191154dd5bd8c23f1 to your computer and use it in GitHub Desktop.
GRPC Healthcheck
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