mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
91 lines
2.6 KiB
Go
91 lines
2.6 KiB
Go
// Code generated by Wire. DO NOT EDIT.
|
|
|
|
//go:generate wire
|
|
//+build !wireinject
|
|
|
|
package subsonic
|
|
|
|
import (
|
|
"github.com/deluan/navidrome/core"
|
|
"github.com/google/wire"
|
|
)
|
|
|
|
// Injectors from wire_injectors.go:
|
|
|
|
func initSystemController(router *Router) *SystemController {
|
|
systemController := NewSystemController()
|
|
return systemController
|
|
}
|
|
|
|
func initBrowsingController(router *Router) *BrowsingController {
|
|
dataStore := router.DataStore
|
|
externalInfo := router.ExternalInfo
|
|
browsingController := NewBrowsingController(dataStore, externalInfo)
|
|
return browsingController
|
|
}
|
|
|
|
func initAlbumListController(router *Router) *AlbumListController {
|
|
dataStore := router.DataStore
|
|
nowPlaying := core.NewNowPlayingRepository()
|
|
albumListController := NewAlbumListController(dataStore, nowPlaying)
|
|
return albumListController
|
|
}
|
|
|
|
func initMediaAnnotationController(router *Router) *MediaAnnotationController {
|
|
dataStore := router.DataStore
|
|
nowPlaying := core.NewNowPlayingRepository()
|
|
mediaAnnotationController := NewMediaAnnotationController(dataStore, nowPlaying)
|
|
return mediaAnnotationController
|
|
}
|
|
|
|
func initPlaylistsController(router *Router) *PlaylistsController {
|
|
dataStore := router.DataStore
|
|
playlistsController := NewPlaylistsController(dataStore)
|
|
return playlistsController
|
|
}
|
|
|
|
func initSearchingController(router *Router) *SearchingController {
|
|
dataStore := router.DataStore
|
|
searchingController := NewSearchingController(dataStore)
|
|
return searchingController
|
|
}
|
|
|
|
func initUsersController(router *Router) *UsersController {
|
|
usersController := NewUsersController()
|
|
return usersController
|
|
}
|
|
|
|
func initMediaRetrievalController(router *Router) *MediaRetrievalController {
|
|
artwork := router.Artwork
|
|
mediaRetrievalController := NewMediaRetrievalController(artwork)
|
|
return mediaRetrievalController
|
|
}
|
|
|
|
func initStreamController(router *Router) *StreamController {
|
|
mediaStreamer := router.Streamer
|
|
archiver := router.Archiver
|
|
dataStore := router.DataStore
|
|
streamController := NewStreamController(mediaStreamer, archiver, dataStore)
|
|
return streamController
|
|
}
|
|
|
|
func initBookmarksController(router *Router) *BookmarksController {
|
|
dataStore := router.DataStore
|
|
bookmarksController := NewBookmarksController(dataStore)
|
|
return bookmarksController
|
|
}
|
|
|
|
// wire_injectors.go:
|
|
|
|
var allProviders = wire.NewSet(
|
|
NewSystemController,
|
|
NewBrowsingController,
|
|
NewAlbumListController,
|
|
NewMediaAnnotationController,
|
|
NewPlaylistsController,
|
|
NewSearchingController,
|
|
NewUsersController,
|
|
NewMediaRetrievalController,
|
|
NewStreamController,
|
|
NewBookmarksController, core.NewNowPlayingRepository, wire.FieldsOf(new(*Router), "Artwork", "Streamer", "Archiver", "DataStore", "ExternalInfo"),
|
|
)
|