mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 21:32:58 +00:00
* feat: heartbeat handler * chore: heartbeat handlers lock refactor * chore: store rpc req/res wrapper * chore: router rpc/res wrapper * chore: const method(request_header) * chore: rm unnessary const fn & refactor HeartbeatHandler * chore: refactor CreateRequest * chore: HeartbeatAccumulator * chore: improve router req/res convert * fix: register race condition
49 lines
1.0 KiB
Protocol Buffer
49 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package greptime.v1.meta;
|
|
|
|
message RequestHeader {
|
|
uint64 protocol_version = 1;
|
|
// cluster_id is the ID of the cluster which be sent to.
|
|
uint64 cluster_id = 2;
|
|
// member_id is the ID of the sender server.
|
|
uint64 member_id = 3;
|
|
}
|
|
|
|
message ResponseHeader {
|
|
uint64 protocol_version = 1;
|
|
// cluster_id is the ID of the cluster which sent the response.
|
|
uint64 cluster_id = 2;
|
|
Error error = 3;
|
|
}
|
|
|
|
message Error {
|
|
int32 code = 1;
|
|
string err_msg = 2;
|
|
}
|
|
|
|
message Peer {
|
|
uint64 id = 1;
|
|
string addr = 2;
|
|
}
|
|
|
|
message TableName {
|
|
string catalog_name = 1;
|
|
string schema_name = 2;
|
|
string table_name = 3;
|
|
}
|
|
|
|
message TimeInterval {
|
|
// The unix timestamp in millis of the start of this period.
|
|
uint64 start_timestamp_millis = 1;
|
|
// The unix timestamp in millis of the end of this period.
|
|
uint64 end_timestamp_millis = 2;
|
|
}
|
|
|
|
message KeyValue {
|
|
// key is the key in bytes. An empty key is not allowed.
|
|
bytes key = 1;
|
|
// value is the value held by the key, in bytes.
|
|
bytes value = 2;
|
|
}
|