Moved everything out of internal

This commit is contained in:
Stash Dev 2019-02-09 18:53:08 -08:00
parent 5b5a72364f
commit 59782a377f
92 changed files with 87 additions and 85 deletions

View File

@ -2,8 +2,8 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/internal/scraper"
"github.com/stashapp/stash/models"
"github.com/stashapp/stash/scraper"
"sort"
"strconv"
)

View File

@ -2,7 +2,7 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
"strconv"
)

View File

@ -2,8 +2,8 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/api/urlbuilders"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/api/urlbuilders"
"github.com/stashapp/stash/models"
"strconv"
)

View File

@ -2,10 +2,10 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/api/urlbuilders"
"github.com/stashapp/stash/internal/manager"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/api/urlbuilders"
"github.com/stashapp/stash/manager"
"github.com/stashapp/stash/models"
"github.com/stashapp/stash/utils"
"strconv"
)

View File

@ -2,8 +2,8 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/api/urlbuilders"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/api/urlbuilders"
"github.com/stashapp/stash/models"
"strconv"
)

View File

@ -2,8 +2,8 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/api/urlbuilders"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/api/urlbuilders"
"github.com/stashapp/stash/models"
"strconv"
)

View File

@ -2,7 +2,7 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
"strconv"
)

View File

@ -3,9 +3,9 @@ package api
import (
"context"
"database/sql"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/database"
"github.com/stashapp/stash/models"
"github.com/stashapp/stash/utils"
"strconv"
"time"
)

View File

@ -3,8 +3,8 @@ package api
import (
"context"
"database/sql"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/database"
"github.com/stashapp/stash/models"
"strconv"
"time"
)

View File

@ -3,9 +3,9 @@ package api
import (
"context"
"database/sql"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/database"
"github.com/stashapp/stash/models"
"github.com/stashapp/stash/utils"
"strconv"
"time"
)

View File

@ -2,8 +2,8 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/database"
"github.com/stashapp/stash/models"
"strconv"
"time"
)

View File

@ -2,7 +2,7 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
"strconv"
)

View File

@ -2,7 +2,7 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
"strconv"
)

View File

@ -2,7 +2,7 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
"strconv"
)

View File

@ -2,7 +2,7 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
)
func (r *queryResolver) FindSceneMarkers(ctx context.Context, scene_marker_filter *models.SceneMarkerFilterType, filter *models.FindFilterType) (models.FindSceneMarkersResultType, error) {

View File

@ -2,7 +2,7 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
"strconv"
)

View File

@ -2,7 +2,7 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
"strconv"
)

View File

@ -2,7 +2,7 @@ package api
import (
"context"
"github.com/stashapp/stash/internal/manager"
"github.com/stashapp/stash/manager"
)
func (r *queryResolver) MetadataScan(ctx context.Context) (string, error) {

View File

@ -3,7 +3,7 @@ package api
import (
"context"
"github.com/go-chi/chi"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
"net/http"
"strconv"
)

View File

@ -3,7 +3,7 @@ package api
import (
"context"
"github.com/go-chi/chi"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
"net/http"
"strconv"
)

View File

@ -3,10 +3,10 @@ package api
import (
"context"
"github.com/go-chi/chi"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/internal/manager"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/logger"
"github.com/stashapp/stash/manager"
"github.com/stashapp/stash/models"
"github.com/stashapp/stash/utils"
"net/http"
"strconv"
"strings"

View File

@ -3,7 +3,7 @@ package api
import (
"context"
"github.com/go-chi/chi"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/models"
"net/http"
"strconv"
)

View File

@ -10,8 +10,8 @@ import (
"github.com/go-chi/chi/middleware"
"github.com/gobuffalo/packr/v2"
"github.com/rs/cors"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/logger"
"github.com/stashapp/stash/models"
"net/http"
"path"
"runtime/debug"

View File

@ -7,7 +7,7 @@ import (
"github.com/golang-migrate/migrate/v4/source"
"github.com/jmoiron/sqlx"
_ "github.com/mattn/go-sqlite3"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/logger"
"runtime"
"strings"
)

View File

@ -2,7 +2,7 @@ package ffmpeg
import (
"fmt"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/logger"
"io/ioutil"
"os/exec"
"regexp"

View File

@ -1,9 +1,9 @@
package main
import (
"github.com/stashapp/stash/internal/api"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/internal/manager"
"github.com/stashapp/stash/api"
"github.com/stashapp/stash/database"
"github.com/stashapp/stash/manager"
_ "github.com/golang-migrate/migrate/v4/database/sqlite3"
_ "github.com/golang-migrate/migrate/v4/source/file"

View File

@ -1,6 +1,8 @@
package manager
import "github.com/stashapp/stash/internal/manager/jsonschema"
import (
"github.com/stashapp/stash/manager/jsonschema"
)
type jsonUtils struct {}

View File

@ -2,7 +2,7 @@ package jsonschema
import (
"encoding/json"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/logger"
"os"
)

View File

@ -2,8 +2,8 @@ package manager
import (
"github.com/bmatcuk/doublestar"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/internal/manager/paths"
"github.com/stashapp/stash/logger"
"github.com/stashapp/stash/manager/paths"
"path/filepath"
"sync"
)

View File

@ -1,8 +1,8 @@
package paths
import (
"github.com/stashapp/stash/internal/manager/jsonschema"
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/manager/jsonschema"
"github.com/stashapp/stash/utils"
"os"
"os/user"
"path/filepath"

View File

@ -2,7 +2,7 @@ package paths
import (
"fmt"
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/utils"
"path/filepath"
"runtime"
"strings"

View File

@ -1,7 +1,7 @@
package paths
import (
"github.com/stashapp/stash/internal/manager/jsonschema"
"github.com/stashapp/stash/manager/jsonschema"
"path/filepath"
)

View File

@ -1,7 +1,7 @@
package paths
import (
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/utils"
"path/filepath"
)

View File

@ -1,7 +1,7 @@
package paths
import (
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/utils"
"path/filepath"
)

View File

@ -1,7 +1,7 @@
package paths
import (
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/utils"
"path/filepath"
)

View File

@ -3,11 +3,11 @@ package manager
import (
"context"
"fmt"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/internal/manager/jsonschema"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/database"
"github.com/stashapp/stash/logger"
"github.com/stashapp/stash/manager/jsonschema"
"github.com/stashapp/stash/models"
"github.com/stashapp/stash/utils"
"math"
"strconv"
"sync"

View File

@ -4,11 +4,11 @@ import (
"context"
"database/sql"
"github.com/jmoiron/sqlx"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/internal/manager/jsonschema"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/database"
"github.com/stashapp/stash/logger"
"github.com/stashapp/stash/manager/jsonschema"
"github.com/stashapp/stash/models"
"github.com/stashapp/stash/utils"
"strconv"
"sync"
"time"

View File

@ -3,11 +3,11 @@ package manager
import (
"context"
"database/sql"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/internal/ffmpeg"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/database"
"github.com/stashapp/stash/ffmpeg"
"github.com/stashapp/stash/logger"
"github.com/stashapp/stash/models"
"github.com/stashapp/stash/utils"
"path/filepath"
"strconv"
"sync"

View File

@ -1,6 +1,6 @@
package manager
import "github.com/stashapp/stash/internal/utils"
import "github.com/stashapp/stash/utils"
func IsStreamable(videoPath string, checksum string) (bool, error) {
fileType, err := utils.FileType(videoPath)

View File

@ -5,9 +5,9 @@ import (
"bytes"
"database/sql"
"github.com/disintegration/imaging"
"github.com/stashapp/stash/internal/api/urlbuilders"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/internal/utils"
"github.com/stashapp/stash/api/urlbuilders"
"github.com/stashapp/stash/logger"
"github.com/stashapp/stash/utils"
"image"
"image/jpeg"
"io/ioutil"

View File

@ -3,7 +3,7 @@ package models
import (
"database/sql"
"github.com/jmoiron/sqlx"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/database"
"path/filepath"
)

View File

@ -3,7 +3,7 @@ package models
import (
"database/sql"
"github.com/jmoiron/sqlx"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/database"
)
type performerQueryBuilder struct {}

View File

@ -3,7 +3,7 @@ package models
import (
"database/sql"
"github.com/jmoiron/sqlx"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/database"
"strconv"
"strings"
)

View File

@ -3,7 +3,7 @@ package models
import (
"database/sql"
"github.com/jmoiron/sqlx"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/database"
"strconv"
)

View File

@ -3,7 +3,7 @@ package models
import (
"database/sql"
"github.com/jmoiron/sqlx"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/database"
)
type scrapedItemQueryBuilder struct{}

View File

@ -4,7 +4,7 @@ import (
"database/sql"
"fmt"
"github.com/jmoiron/sqlx"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/database"
"reflect"
"strconv"
"strings"

View File

@ -3,7 +3,7 @@ package models
import (
"database/sql"
"github.com/jmoiron/sqlx"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/database"
)
type studioQueryBuilder struct {}

View File

@ -3,7 +3,7 @@ package models
import (
"database/sql"
"github.com/jmoiron/sqlx"
"github.com/stashapp/stash/internal/database"
"github.com/stashapp/stash/database"
)
type tagQueryBuilder struct {}

View File

@ -3,8 +3,8 @@ package scraper
import (
"fmt"
"github.com/PuerkitoBio/goquery"
"github.com/stashapp/stash/internal/logger"
"github.com/stashapp/stash/internal/models"
"github.com/stashapp/stash/logger"
"github.com/stashapp/stash/models"
"net/http"
"net/url"
"regexp"