36147379c3
* feat: add go protobuf generation * ci: check go protbuf generation * refactor: use 'namely/protoc-all:1.51_1' to compile the proto instead of locally binary * refactor: no need to add the 'bin/' igore * chore: modify code format * refactor: add some comments to describe our modification
30 lines
706 B
Protocol Buffer
30 lines
706 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package greptime.v1.meta;
|
|
|
|
option go_package = "github.com/GreptimeTeam/greptime-proto/go/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;
|
|
}
|