refactoring to prep for integration tests

This commit is contained in:
David Zhao
2021-01-13 00:04:36 -08:00
parent 381ec58050
commit 09e5a37c75
10 changed files with 310 additions and 179 deletions
+19
View File
@@ -0,0 +1,19 @@
//+build wireinject
package service
import (
"github.com/google/wire"
"github.com/livekit/livekit-server/pkg/auth"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/node"
)
func InitializeServer(conf *config.Config, keyProvider auth.KeyProvider) (*LivekitServer, error) {
wire.Build(
node.NodeSet,
ServiceSet,
)
return &LivekitServer{}, nil
}