Implement AgentDispatch service (#2919)

This allows listing, adding and deleting agent dispatches on an existing room. Requests go to a new AgentDispatchService, which sends them over RPC to the rtc.Room via the RoomManager. The rtc.Room then does agent job management using RPCs to the agent service.
This commit is contained in:
Benjamin Pracht
2024-08-08 22:31:23 +02:00
committed by GitHub
parent 7018e485f2
commit 64057c3e4d
12 changed files with 510 additions and 59 deletions
+1 -5
View File
@@ -41,7 +41,6 @@ type IngressService struct {
psrpcClient rpc.IngressClient
store IngressStore
io IOClient
roomService livekit.RoomService
telemetry telemetry.TelemetryService
launcher IngressLauncher
}
@@ -53,7 +52,6 @@ func NewIngressServiceWithIngressLauncher(
psrpcClient rpc.IngressClient,
store IngressStore,
io IOClient,
rs livekit.RoomService,
ts telemetry.TelemetryService,
launcher IngressLauncher,
) *IngressService {
@@ -65,7 +63,6 @@ func NewIngressServiceWithIngressLauncher(
psrpcClient: psrpcClient,
store: store,
io: io,
roomService: rs,
telemetry: ts,
launcher: launcher,
}
@@ -78,10 +75,9 @@ func NewIngressService(
psrpcClient rpc.IngressClient,
store IngressStore,
io IOClient,
rs livekit.RoomService,
ts telemetry.TelemetryService,
) *IngressService {
s := NewIngressServiceWithIngressLauncher(conf, nodeID, bus, psrpcClient, store, io, rs, ts, nil)
s := NewIngressServiceWithIngressLauncher(conf, nodeID, bus, psrpcClient, store, io, ts, nil)
s.launcher = s