mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-18 21:07:44 +03:00
Isolated ledis gomate implementation in its own package
This commit is contained in:
parent
83e0a7b24c
commit
5a0864769b
@ -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…
x
Reference in New Issue
Block a user