mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
- Create model.DataStore, with provision for transactions - Change all layers dependencies on repositories to use DataStore - Implemented persistence.SQLStore - Removed iTunes Bridge/Importer support
56 lines
1.3 KiB
Go
56 lines
1.3 KiB
Go
//+build wireinject
|
|
|
|
package api
|
|
|
|
import (
|
|
"github.com/google/wire"
|
|
)
|
|
|
|
var allProviders = wire.NewSet(
|
|
NewSystemController,
|
|
NewBrowsingController,
|
|
NewAlbumListController,
|
|
NewMediaAnnotationController,
|
|
NewPlaylistsController,
|
|
NewSearchingController,
|
|
NewUsersController,
|
|
NewMediaRetrievalController,
|
|
NewStreamController,
|
|
wire.FieldsOf(new(*Router), "Browser", "Cover", "ListGenerator", "Playlists", "Ratings", "Scrobbler", "Search"),
|
|
)
|
|
|
|
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))
|
|
}
|