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:
@@ -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 {
|
||||
|
||||
@@ -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 {}
|
||||
Reference in New Issue
Block a user