Updated egress rpc (#1252)
* updated egress rpc * check if egress exists on stop * fix static check * remove old migration code * rename * regenerate, update test * latest staticcheck * update to psrpc 0.1.0 * fix tests * dual write rpcs on running egress * remove unused field * fix race, change service for egress impl * return nil if bus is nil * id -> ids * add affinityFunc to StartEgress
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package rpc;
|
||||
|
||||
option go_package = "github.com/livekit/livekit/pkg/service/rpc";
|
||||
|
||||
import "options.proto";
|
||||
import "livekit_rpc_internal.proto";
|
||||
import "livekit_egress.proto";
|
||||
|
||||
service EgressInternal {
|
||||
rpc StartEgress(livekit.StartEgressRequest) returns (livekit.EgressInfo) {
|
||||
option (psrpc.options).affinity_func = true;
|
||||
};
|
||||
rpc ListActiveEgress(ListActiveEgressRequest) returns (ListActiveEgressResponse) {
|
||||
option (psrpc.options).multi = true;
|
||||
}
|
||||
}
|
||||
|
||||
service EgressHandler {
|
||||
rpc UpdateStream(livekit.UpdateStreamRequest) returns (livekit.EgressInfo) {
|
||||
option (psrpc.options).topics = true;
|
||||
}
|
||||
rpc StopEgress(livekit.StopEgressRequest) returns (livekit.EgressInfo) {
|
||||
option (psrpc.options).topics = true;
|
||||
}
|
||||
rpc InfoUpdate(Empty) returns (livekit.EgressInfo) {
|
||||
option (psrpc.options).subscription = true;
|
||||
}
|
||||
}
|
||||
|
||||
message Empty {}
|
||||
|
||||
message ListActiveEgressRequest {}
|
||||
|
||||
message ListActiveEgressResponse {
|
||||
repeated string egress_ids = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user