From 7dc0805940b01d902aafe49349cfea8d92685a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=E2=83=9Doo?= <56350037+Time-Hu@users.noreply.github.com> Date: Wed, 9 Nov 2022 16:28:09 +0800 Subject: [PATCH] add rpc: LookupResource (#29) --- hstream.proto | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hstream.proto b/hstream.proto index 9ae1be6..0fa881b 100644 --- a/hstream.proto +++ b/hstream.proto @@ -57,6 +57,7 @@ service HStreamApi { // Cluster APIs rpc DescribeCluster(google.protobuf.Empty) returns (DescribeClusterResponse) { } + rpc LookupResource(LookupResourceRequest) returns (ServerNode) {} // Admin Command rpc SendAdminCommand(AdminCommandRequest) returns (AdminCommandResponse); @@ -483,3 +484,18 @@ message LookupShardReaderResponse { string readerId = 1; ServerNode serverNode = 2; } + +enum ResourceType { + ResStream = 0; + ResSubscription = 1; + ResShard = 2; + ResShardReader = 3; + ResConnector = 4; + ResQuery = 5; + ResView = 6; +} + +message LookupResourceRequest { + ResourceType resType = 1; + string resId = 2; +}