Skip to content

Commit

Permalink
Add KillIngressSession to ingress RPC (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
biglittlebigben authored Jun 12, 2024
1 parent 1dd95af commit 114aac1
Show file tree
Hide file tree
Showing 3 changed files with 361 additions and 150 deletions.
23 changes: 22 additions & 1 deletion protobufs/rpc/ingress.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ service IngressInternal {
option (psrpc.options).multi = true;
option (psrpc.options).topics = true;
};

rpc KillIngressSession(KillIngressSessionRequest) returns (google.protobuf.Empty) {
option (psrpc.options) = {
topics: true
topic_params: {
names: ["ingress_id", "resource_id"]
typed: false
}
};
};
}

service IngressHandler {
Expand All @@ -52,7 +62,8 @@ service IngressHandler {
message ListActiveIngressRequest {}

message ListActiveIngressResponse {
repeated string ingress_ids = 1;
repeated string ingress_ids = 1 [deprecated = true];
repeated IngressSession ingress_sessions = 2;
}

message DeleteWHIPResourceRequest {
Expand All @@ -78,3 +89,13 @@ message StartIngressRequest {
string ws_url = 3;
map<string,string> logging_fields = 4;
}

message IngressSession {
string ingress_id = 1;
string resource_id = 2;
}

message KillIngressSessionRequest {
IngressSession session = 1;
}

Loading

0 comments on commit 114aac1

Please sign in to comment.