feat: add dbname and health check api (#18)

* feat: add dbname field in proto

* feat: add health check service

* fix: enum must start from 0

* chore: check in generated go sources

* refactor: remove health check response content

* chore: generate go sources
This commit is contained in:
Ning Sun
2023-03-26 23:01:54 +08:00
committed by GitHub
parent 9eaf95eb91
commit ff8c55bed0
6 changed files with 421 additions and 90 deletions
+2
View File
@@ -22,6 +22,8 @@ message RequestHeader {
string schema = 2;
// The `authorization` header, much like http's authorization header.
AuthHeader authorization = 3;
// The `dbname` for the request
string dbname = 4;
}
message AuthHeader {
+16
View File
@@ -0,0 +1,16 @@
syntax = "proto3";
package greptime.v1;
option java_package = "io.greptime.v1";
option java_outer_classname = "Health";
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
service HealthCheck {
rpc HealthCheck(HealthCheckRequest) returns (HealthCheckResponse);
}
message HealthCheckRequest {}
message HealthCheckResponse {}