Skip to content

Commit 114aac1

Browse files
Add KillIngressSession to ingress RPC (#735)
1 parent 1dd95af commit 114aac1

File tree

3 files changed

+361
-150
lines changed

3 files changed

+361
-150
lines changed

protobufs/rpc/ingress.proto

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ service IngressInternal {
3131
option (psrpc.options).multi = true;
3232
option (psrpc.options).topics = true;
3333
};
34+
35+
rpc KillIngressSession(KillIngressSessionRequest) returns (google.protobuf.Empty) {
36+
option (psrpc.options) = {
37+
topics: true
38+
topic_params: {
39+
names: ["ingress_id", "resource_id"]
40+
typed: false
41+
}
42+
};
43+
};
3444
}
3545

3646
service IngressHandler {
@@ -52,7 +62,8 @@ service IngressHandler {
5262
message ListActiveIngressRequest {}
5363

5464
message ListActiveIngressResponse {
55-
repeated string ingress_ids = 1;
65+
repeated string ingress_ids = 1 [deprecated = true];
66+
repeated IngressSession ingress_sessions = 2;
5667
}
5768

5869
message DeleteWHIPResourceRequest {
@@ -78,3 +89,13 @@ message StartIngressRequest {
7889
string ws_url = 3;
7990
map<string,string> logging_fields = 4;
8091
}
92+
93+
message IngressSession {
94+
string ingress_id = 1;
95+
string resource_id = 2;
96+
}
97+
98+
message KillIngressSessionRequest {
99+
IngressSession session = 1;
100+
}
101+

0 commit comments

Comments
 (0)