Files
gorush/rpc/proto/gorush.proto
Bo-Yi Wu 25bfe420b0 Add grpc health check. (#304)
* Add grpc health check.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix missing package.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix readme..

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix vet

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-12 08:44:33 -06:00

39 lines
635 B
Protocol Buffer

syntax = "proto3";
package proto;
message NotificationRequest {
repeated string tokens = 1;
int32 platform = 2;
string message = 3;
string title = 4;
string topic = 5;
string key = 6;
}
message NotificationReply {
bool success = 1;
int32 counts = 2;
}
service Gorush {
rpc Send (NotificationRequest) returns (NotificationReply) {}
}
message HealthCheckRequest {
string service = 1;
}
message HealthCheckResponse {
enum ServingStatus {
UNKNOWN = 0;
SERVING = 1;
NOT_SERVING = 2;
}
ServingStatus status = 1;
}
service Health {
rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
}