* egress updates

* pass egressInfo to delete

* update typefakes

* export StartEgress

* update protocol

* new rpc, rename stores

* add json tag

* update tests

* update protocol
This commit is contained in:
David Colburn
2022-02-24 14:57:14 -08:00
committed by GitHub
parent b7aac6cb6b
commit 20f21cce2b
28 changed files with 1952 additions and 507 deletions
+6 -4
View File
@@ -28,7 +28,8 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
createRedisClient,
createMessageBus,
createStore,
wire.Bind(new(RORoomStore), new(RoomStore)),
wire.Bind(new(ServiceStore), new(ObjectStore)),
wire.Bind(new(EgressStore), new(ObjectStore)),
createKeyProvider,
createWebhookNotifier,
routing.CreateRouter,
@@ -36,6 +37,7 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
wire.Bind(new(livekit.RoomService), new(*RoomService)),
telemetry.NewAnalyticsService,
telemetry.NewTelemetryService,
NewEgressService,
NewRecordingService,
NewRoomAllocator,
NewRoomService,
@@ -125,9 +127,9 @@ func createMessageBus(rc *redis.Client) utils.MessageBus {
return utils.NewRedisMessageBus(rc)
}
func createStore(rc *redis.Client) RoomStore {
func createStore(rc *redis.Client) ObjectStore {
if rc != nil {
return NewRedisRoomStore(rc)
return NewRedisStore(rc)
}
return NewLocalRoomStore()
return NewLocalStore()
}