Files
livekit-3d/pkg/service/rpc/egress.proto
T
David Colburn 6719a3c714 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
2022-12-22 21:03:27 -08:00

39 lines
988 B
Protocol Buffer

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;
}