Isolated ledis gomate implementation in its own package

This commit is contained in:
Deluan 2016-03-27 17:20:46 -04:00
parent 83e0a7b24c
commit 5a0864769b

View File

@ -2,6 +2,7 @@ package conf
import ( import (
"github.com/deluan/gomate" "github.com/deluan/gomate"
"github.com/deluan/gomate/ledis"
"github.com/deluan/gosonic/domain" "github.com/deluan/gosonic/domain"
"github.com/deluan/gosonic/engine" "github.com/deluan/gosonic/engine"
"github.com/deluan/gosonic/persistence" "github.com/deluan/gosonic/persistence"
@ -37,6 +38,6 @@ func init() {
// Other dependencies // Other dependencies
utils.DefineSingleton(new(itunesbridge.ItunesControl), itunesbridge.NewItunesControl) utils.DefineSingleton(new(itunesbridge.ItunesControl), itunesbridge.NewItunesControl)
utils.DefineSingleton(new(gomate.DB), func() gomate.DB { utils.DefineSingleton(new(gomate.DB), func() gomate.DB {
return gomate.NewLedisEmbeddedDB(persistence.Db()) return ledis.NewLedisEmbeddedDB(persistence.Db())
}) })
} }