Add support for Ingress service (#868)

Also check for Join permission on ingress API calls
This commit is contained in:
Benjamin Pracht
2022-08-04 09:48:53 -07:00
committed by GitHub
parent 6b6f61b4df
commit c333b7a026
5 changed files with 80 additions and 24 deletions
+13
View File
@@ -16,6 +16,7 @@ import (
"github.com/livekit/protocol/auth"
"github.com/livekit/protocol/egress"
"github.com/livekit/protocol/ingress"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
"github.com/livekit/protocol/webhook"
@@ -44,6 +45,9 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
egress.NewRedisRPCClient,
getEgressStore,
NewEgressService,
ingress.NewRedisRPC,
getIngressStore,
NewIngressService,
NewRoomAllocator,
NewRoomService,
NewRTCService,
@@ -175,6 +179,15 @@ func getEgressStore(s ObjectStore) EgressStore {
}
}
func getIngressStore(s ObjectStore) IngressStore {
switch store := s.(type) {
case *RedisStore:
return store
default:
return nil
}
}
func createClientConfiguration() clientconfiguration.ClientConfigurationManager {
return clientconfiguration.NewStaticClientConfigurationManager(clientconfiguration.StaticConfigurations)
}