refactor server startup into jobs

This commit is contained in:
sentriz
2020-04-18 19:32:51 +01:00
parent 64d0aee8dc
commit 1ff5845a02
15 changed files with 257 additions and 151 deletions

View File

@@ -12,6 +12,7 @@ import (
"go.senan.xyz/gonic/server/ctrlbase"
"go.senan.xyz/gonic/server/ctrlsubsonic/params"
"go.senan.xyz/gonic/server/ctrlsubsonic/spec"
"go.senan.xyz/gonic/server/jukebox"
)
type CtxKey int
@@ -24,14 +25,8 @@ const (
type Controller struct {
*ctrlbase.Controller
cachePath string
}
func New(base *ctrlbase.Controller, cachePath string) *Controller {
return &Controller{
Controller: base,
cachePath: cachePath,
}
CachePath string
Jukebox *jukebox.Jukebox
}
type metaResponse struct {