feat: add status for reponse header (#65)

This commit is contained in:
JeremyHi
2023-07-17 11:55:51 +08:00
committed by GitHub
parent 6e89daefca
commit bec16e50c9
5 changed files with 2565 additions and 807 deletions
+10 -2
View File
@@ -20,8 +20,6 @@ option java_package = "io.greptime.v1";
option java_outer_classname = "Common";
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
message ResponseHeader {}
message RequestHeader {
// The `catalog` that is selected to be used in this request.
string catalog = 1;
@@ -37,6 +35,16 @@ message RequestHeader {
optional uint64 span_id = 6;
}
message ResponseHeader {
Status status = 1;
}
message Status {
// Corresponding to the `StatusCode` definition of GreptimeDB
uint32 status_code = 1;
string err_msg = 2;
}
message AuthHeader {
oneof auth_scheme {
Basic basic = 1;