Skip to content

Commit

Permalink
add rpc: LookupResource (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Time-Hu authored Nov 9, 2022
1 parent b7b0039 commit 7dc0805
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions hstream.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

0 comments on commit 7dc0805

Please sign in to comment.