Ingress psrpc (#1295)

* add ingress psrpc codegen

* use psrpc for ingress

* merge entity/info update psrpc services

* split update/delete ingress methods

* add race helper test

* add race context cancel test

* sync race result with mutex
This commit is contained in:
Paul Wells
2023-01-12 11:00:43 -08:00
committed by GitHub
parent 81fb1c5ef0
commit a052ebd644
16 changed files with 1030 additions and 90 deletions
+29
View File
@@ -0,0 +1,29 @@
syntax = "proto3";
package rpc;
option go_package = "github.com/livekit/livekit/pkg/service/rpc";
import "options.proto";
import "livekit_ingress.proto";
service IngressInternal {
rpc ListActiveIngress(ListActiveIngressRequest) returns (ListActiveIngressResponse) {
option (psrpc.options).multi = true;
};
}
service IngressHandler {
rpc UpdateIngress(livekit.UpdateIngressRequest) returns (livekit.IngressState) {
option (psrpc.options).topics = true;
};
rpc DeleteIngress(livekit.DeleteIngressRequest) returns (livekit.IngressState) {
option (psrpc.options).topics = true;
};
}
message ListActiveIngressRequest {}
message ListActiveIngressResponse {
repeated string ingress_ids = 1;
}