Move engine package under subsonic, as it should only be used by the Subsonic API.master

The idea is to move reusable code from `engine` to `core`, in future refactorings
This commit is contained in:
Deluan 2020-08-04 21:29:35 -04:00
parent 9a1133601a
commit df05760769
28 changed files with 12 additions and 12 deletions

View file

@ -8,12 +8,12 @@ package cmd
import ( import (
"github.com/deluan/navidrome/core" "github.com/deluan/navidrome/core"
"github.com/deluan/navidrome/core/transcoder" "github.com/deluan/navidrome/core/transcoder"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/persistence" "github.com/deluan/navidrome/persistence"
"github.com/deluan/navidrome/scanner" "github.com/deluan/navidrome/scanner"
"github.com/deluan/navidrome/server" "github.com/deluan/navidrome/server"
"github.com/deluan/navidrome/server/app" "github.com/deluan/navidrome/server/app"
"github.com/deluan/navidrome/server/subsonic" "github.com/deluan/navidrome/server/subsonic"
"github.com/deluan/navidrome/server/subsonic/engine"
"github.com/google/wire" "github.com/google/wire"
) )

View file

@ -4,12 +4,12 @@ package cmd
import ( import (
"github.com/deluan/navidrome/core" "github.com/deluan/navidrome/core"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/persistence" "github.com/deluan/navidrome/persistence"
"github.com/deluan/navidrome/scanner" "github.com/deluan/navidrome/scanner"
"github.com/deluan/navidrome/server" "github.com/deluan/navidrome/server"
"github.com/deluan/navidrome/server/app" "github.com/deluan/navidrome/server/app"
"github.com/deluan/navidrome/server/subsonic" "github.com/deluan/navidrome/server/subsonic"
"github.com/deluan/navidrome/server/subsonic/engine"
"github.com/google/wire" "github.com/google/wire"
) )

View file

@ -4,8 +4,8 @@ import (
"errors" "errors"
"net/http" "net/http"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/log" "github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/server/subsonic/engine"
"github.com/deluan/navidrome/server/subsonic/responses" "github.com/deluan/navidrome/server/subsonic/responses"
"github.com/deluan/navidrome/utils" "github.com/deluan/navidrome/utils"
) )

View file

@ -5,7 +5,7 @@ import (
"errors" "errors"
"net/http/httptest" "net/http/httptest"
"github.com/deluan/navidrome/engine" "github.com/deluan/navidrome/server/subsonic/engine"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
) )

View file

@ -9,9 +9,9 @@ import (
"github.com/deluan/navidrome/consts" "github.com/deluan/navidrome/consts"
"github.com/deluan/navidrome/core" "github.com/deluan/navidrome/core"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/log" "github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/model" "github.com/deluan/navidrome/model"
"github.com/deluan/navidrome/server/subsonic/engine"
"github.com/deluan/navidrome/server/subsonic/responses" "github.com/deluan/navidrome/server/subsonic/responses"
"github.com/deluan/navidrome/utils" "github.com/deluan/navidrome/utils"
"github.com/go-chi/chi" "github.com/go-chi/chi"

View file

@ -6,9 +6,9 @@ import (
"time" "time"
"github.com/deluan/navidrome/conf" "github.com/deluan/navidrome/conf"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/log" "github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/model" "github.com/deluan/navidrome/model"
"github.com/deluan/navidrome/server/subsonic/engine"
"github.com/deluan/navidrome/server/subsonic/responses" "github.com/deluan/navidrome/server/subsonic/responses"
"github.com/deluan/navidrome/utils" "github.com/deluan/navidrome/utils"
) )

View file

@ -7,9 +7,9 @@ import (
"net/http" "net/http"
"github.com/deluan/navidrome/consts" "github.com/deluan/navidrome/consts"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/model" "github.com/deluan/navidrome/model"
"github.com/deluan/navidrome/model/request" "github.com/deluan/navidrome/model/request"
"github.com/deluan/navidrome/server/subsonic/engine"
"github.com/deluan/navidrome/server/subsonic/responses" "github.com/deluan/navidrome/server/subsonic/responses"
"github.com/deluan/navidrome/utils" "github.com/deluan/navidrome/utils"
) )

View file

@ -5,9 +5,9 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/log" "github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/model" "github.com/deluan/navidrome/model"
"github.com/deluan/navidrome/server/subsonic/engine"
"github.com/deluan/navidrome/server/subsonic/responses" "github.com/deluan/navidrome/server/subsonic/responses"
"github.com/deluan/navidrome/utils" "github.com/deluan/navidrome/utils"
) )

View file

@ -7,10 +7,10 @@ import (
"net/url" "net/url"
"strings" "strings"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/log" "github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/model" "github.com/deluan/navidrome/model"
"github.com/deluan/navidrome/model/request" "github.com/deluan/navidrome/model/request"
"github.com/deluan/navidrome/server/subsonic/engine"
"github.com/deluan/navidrome/server/subsonic/responses" "github.com/deluan/navidrome/server/subsonic/responses"
"github.com/deluan/navidrome/utils" "github.com/deluan/navidrome/utils"
) )

View file

@ -7,10 +7,10 @@ import (
"net/http/httptest" "net/http/httptest"
"strings" "strings"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/log" "github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/model" "github.com/deluan/navidrome/model"
"github.com/deluan/navidrome/model/request" "github.com/deluan/navidrome/model/request"
"github.com/deluan/navidrome/server/subsonic/engine"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
) )

View file

@ -6,9 +6,9 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/log" "github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/model" "github.com/deluan/navidrome/model"
"github.com/deluan/navidrome/server/subsonic/engine"
"github.com/deluan/navidrome/server/subsonic/responses" "github.com/deluan/navidrome/server/subsonic/responses"
"github.com/deluan/navidrome/utils" "github.com/deluan/navidrome/utils"
) )

View file

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/deluan/navidrome/engine"
"github.com/deluan/navidrome/log" "github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/server/subsonic/engine"
"github.com/deluan/navidrome/server/subsonic/responses" "github.com/deluan/navidrome/server/subsonic/responses"
"github.com/deluan/navidrome/utils" "github.com/deluan/navidrome/utils"
) )