mirror of
https://github.com/livekit/livekit.git
synced 2026-05-25 22:55:04 +00:00
22 lines
516 B
Go
22 lines
516 B
Go
//+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/routing"
|
|
"github.com/livekit/livekit-server/pkg/rtc"
|
|
)
|
|
|
|
func InitializeServer(conf *config.Config, keyProvider auth.KeyProvider,
|
|
roomStore RoomStore, router routing.Router, currentNode routing.LocalNode) (*LivekitServer, error) {
|
|
wire.Build(
|
|
ServiceSet,
|
|
rtc.RTCSet,
|
|
)
|
|
return &LivekitServer{}, nil
|
|
}
|