feat: add channel field to query context (#183)

* feat: add source field to query context

* refactor: rename field to channel

* chore: fix indent
This commit is contained in:
Ning Sun
2024-07-30 21:45:23 +08:00
committed by GitHub
parent 7ca323090b
commit c437b55725
8 changed files with 410 additions and 270 deletions
+3 -3
View File
@@ -54,7 +54,7 @@ class Heartbeat final {
virtual ~StubInterface() {}
// Heartbeat, there may be many contents of the heartbeat, such as:
// 1. Metadata to be registered to meta server and discoverable by other
// nodes.
// nodes.
// 2. Some performance metrics, such as Load, CPU usage, etc.
// 3. The number of computing tasks being executed.
std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::greptime::v1::meta::HeartbeatRequest, ::greptime::v1::meta::HeartbeatResponse>> Heartbeat(::grpc::ClientContext* context) {
@@ -79,7 +79,7 @@ class Heartbeat final {
virtual ~async_interface() {}
// Heartbeat, there may be many contents of the heartbeat, such as:
// 1. Metadata to be registered to meta server and discoverable by other
// nodes.
// nodes.
// 2. Some performance metrics, such as Load, CPU usage, etc.
// 3. The number of computing tasks being executed.
virtual void Heartbeat(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::greptime::v1::meta::HeartbeatRequest,::greptime::v1::meta::HeartbeatResponse>* reactor) = 0;
@@ -149,7 +149,7 @@ class Heartbeat final {
virtual ~Service();
// Heartbeat, there may be many contents of the heartbeat, such as:
// 1. Metadata to be registered to meta server and discoverable by other
// nodes.
// nodes.
// 2. Some performance metrics, such as Load, CPU usage, etc.
// 3. The number of computing tasks being executed.
virtual ::grpc::Status Heartbeat(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::greptime::v1::meta::HeartbeatResponse, ::greptime::v1::meta::HeartbeatRequest>* stream);