2016-03-01 05:38:43 -09:00
|
|
|
package conf
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/deluan/gosonic/repositories"
|
|
|
|
|
"github.com/deluan/gosonic/utils"
|
|
|
|
|
"github.com/karlkfi/inject"
|
|
|
|
|
)
|
|
|
|
|
|
2016-03-01 06:18:02 -09:00
|
|
|
func define(ptr interface{}, constructor interface{}, argPtrs ...interface{}) {
|
|
|
|
|
utils.Graph.Define(ptr, inject.NewProvider(constructor, argPtrs...))
|
|
|
|
|
}
|
2016-03-01 05:38:43 -09:00
|
|
|
|
|
|
|
|
func init () {
|
2016-03-01 06:18:02 -09:00
|
|
|
define(new(repositories.ArtistIndex), repositories.NewArtistIndexRepository)
|
2016-03-01 05:38:43 -09:00
|
|
|
}
|