Refactor Agents to be singleton

Initial work for Last.fm scrobbler
This commit is contained in:
Deluan
2021-06-22 11:15:51 -04:00
committed by Deluan Quintão
parent f9fa9667a3
commit d5461d0ae9
17 changed files with 289 additions and 212 deletions
+2 -2
View File
@@ -16,10 +16,10 @@ import (
type AlbumListController struct {
ds model.DataStore
scrobbler scrobbler.Scrobbler
scrobbler scrobbler.Broker
}
func NewAlbumListController(ds model.DataStore, scrobbler scrobbler.Scrobbler) *AlbumListController {
func NewAlbumListController(ds model.DataStore, scrobbler scrobbler.Broker) *AlbumListController {
c := &AlbumListController{
ds: ds,
scrobbler: scrobbler,