move protobuf from GreptimeDB (#1)

* move protobuf from GreptimeDB

* add license check

* add other github actions
This commit is contained in:
LFC
2023-02-09 14:59:48 +08:00
committed by GitHub
parent 39fa4e3c28
commit 6fadcf8c7a
22 changed files with 1326 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
syntax = "proto3";
package greptime.v1.meta;
import "greptime/v1/meta/common.proto";
import "greptime/v1/meta/store.proto";
// Cluster service is used for communication between meta nodes.
service Cluster {
// Batch get kvs by input keys from leader's in_memory kv store.
rpc BatchGet(BatchGetRequest) returns (BatchGetResponse);
// Range get the kvs from leader's in_memory kv store.
rpc Range(RangeRequest) returns (RangeResponse);
}
message BatchGetRequest {
RequestHeader header = 1;
repeated bytes keys = 2;
}
message BatchGetResponse {
ResponseHeader header = 1;
repeated KeyValue kvs = 2;
}