You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-grpc_basic/proto/v1/health/health.proto

22 lines
472 B
Protocol Buffer

syntax = "proto3";
package api.gogrpc.v1.health;
option go_package = "github.com/ajikamaludin/go-grpc_basic/proto/v1/health";
import "google/api/annotations.proto";
import "google/protobuf/empty.proto";
message Response {
bool success = 1;
string code = 2;
string desc = 3;
}
service HealthService {
rpc Status(google.protobuf.Empty) returns (Response) {
option (google.api.http) = {
get: "/api/v1/health/status"
};
}
}