Files
livekit/pkg/service/wire.go
2021-03-13 22:01:51 -08:00

21 lines
479 B
Go

//+build wireinject
package service
import (
"github.com/google/wire"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/protocol/auth"
)
func InitializeServer(conf *config.Config, keyProvider auth.KeyProvider,
roomStore RoomStore, router routing.Router, currentNode routing.LocalNode,
selector routing.NodeSelector) (*LivekitServer, error) {
wire.Build(
ServiceSet,
)
return &LivekitServer{}, nil
}