Isolated ledis gomate implementation in its own package
This commit is contained in:
parent
83e0a7b24c
commit
5a0864769b
1 changed files with 2 additions and 1 deletions
|
|
@ -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())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue