decouple websocket and RTC nodes, prep for distributed

This commit is contained in:
David Zhao
2021-01-16 10:37:38 -08:00
parent 9a10a57b30
commit 9064f6ade1
61 changed files with 2683 additions and 1361 deletions
+5 -3
View File
@@ -7,13 +7,15 @@ import (
"github.com/livekit/livekit-server/pkg/auth"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/node"
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/pkg/rtc"
)
func InitializeServer(conf *config.Config, keyProvider auth.KeyProvider) (*LivekitServer, error) {
func InitializeServer(conf *config.Config, keyProvider auth.KeyProvider,
roomStore RoomStore, router routing.Router, currentNode routing.LocalNode) (*LivekitServer, error) {
wire.Build(
node.NodeSet,
ServiceSet,
rtc.RTCSet,
)
return &LivekitServer{}, nil
}