mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
76 lines
1.7 KiB
Go
76 lines
1.7 KiB
Go
//+build wireinject
|
|
|
|
package subsonic
|
|
|
|
import (
|
|
"github.com/google/wire"
|
|
)
|
|
|
|
var allProviders = wire.NewSet(
|
|
NewSystemController,
|
|
NewBrowsingController,
|
|
NewAlbumListController,
|
|
NewMediaAnnotationController,
|
|
NewPlaylistsController,
|
|
NewSearchingController,
|
|
NewUsersController,
|
|
NewMediaRetrievalController,
|
|
NewStreamController,
|
|
NewBookmarksController,
|
|
NewLibraryScanningController,
|
|
wire.FieldsOf(
|
|
new(*Router),
|
|
"DataStore",
|
|
"Artwork",
|
|
"Streamer",
|
|
"Archiver",
|
|
"ExternalMetadata",
|
|
"Scanner",
|
|
"Broker",
|
|
"Scrobbler",
|
|
),
|
|
)
|
|
|
|
func initSystemController(router *Router) *SystemController {
|
|
panic(wire.Build(allProviders))
|
|
}
|
|
|
|
func initBrowsingController(router *Router) *BrowsingController {
|
|
panic(wire.Build(allProviders))
|
|
}
|
|
|
|
func initAlbumListController(router *Router) *AlbumListController {
|
|
panic(wire.Build(allProviders))
|
|
}
|
|
|
|
func initMediaAnnotationController(router *Router) *MediaAnnotationController {
|
|
panic(wire.Build(allProviders))
|
|
}
|
|
|
|
func initPlaylistsController(router *Router) *PlaylistsController {
|
|
panic(wire.Build(allProviders))
|
|
}
|
|
|
|
func initSearchingController(router *Router) *SearchingController {
|
|
panic(wire.Build(allProviders))
|
|
}
|
|
|
|
func initUsersController(router *Router) *UsersController {
|
|
panic(wire.Build(allProviders))
|
|
}
|
|
|
|
func initMediaRetrievalController(router *Router) *MediaRetrievalController {
|
|
panic(wire.Build(allProviders))
|
|
}
|
|
|
|
func initStreamController(router *Router) *StreamController {
|
|
panic(wire.Build(allProviders))
|
|
}
|
|
|
|
func initBookmarksController(router *Router) *BookmarksController {
|
|
panic(wire.Build(allProviders))
|
|
}
|
|
|
|
func initLibraryScanningController(router *Router) *LibraryScanningController {
|
|
panic(wire.Build(allProviders))
|
|
}
|