Refactoring to a cleaner architecture

This commit is contained in:
Deluan
2016-03-02 09:07:24 -05:00
parent 74478ce6f9
commit 272a499c7e
27 changed files with 120 additions and 120 deletions
+4 -3
View File
@@ -2,10 +2,11 @@ package conf
import (
"github.com/deluan/gosonic/utils"
"github.com/deluan/gosonic/repositories"
"github.com/deluan/gosonic/persistence"
"github.com/deluan/gosonic/domain"
)
func init () {
utils.DefineSingleton(new(repositories.ArtistIndex), repositories.NewArtistIndexRepository)
utils.DefineSingleton(new(repositories.Property), repositories.NewPropertyRepository)
utils.DefineSingleton(new(domain.ArtistIndexRepository), persistence.NewArtistIndexRepository)
utils.DefineSingleton(new(domain.PropertyRepository), persistence.NewPropertyRepository)
}