change git imports
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
|||||||
|
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
|
|
||||||
scraper "git.amok.space/yevhen/resource-scraper/internal"
|
scraper "git.kplus.net.ua/yevhen/resource-scraper/internal"
|
||||||
"git.amok.space/yevhen/resource-scraper/internal/config"
|
"git.kplus.net.ua/yevhen/resource-scraper/internal/config"
|
||||||
"git.amok.space/yevhen/resource-scraper/internal/logging"
|
"git.kplus.net.ua/yevhen/resource-scraper/internal/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package sugar
|
|||||||
import (
|
import (
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
func IsDev() bool {
|
func IsDev() bool {
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ import (
|
|||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/internal/db"
|
"git.kplus.net.ua/yevhen/resource-scraper/internal/db"
|
||||||
"git.amok.space/yevhen/resource-scraper/pkg/handler"
|
"git.kplus.net.ua/yevhen/resource-scraper/pkg/handler"
|
||||||
"git.amok.space/yevhen/resource-scraper/pkg/repository"
|
"git.kplus.net.ua/yevhen/resource-scraper/pkg/repository"
|
||||||
"git.amok.space/yevhen/resource-scraper/pkg/service"
|
"git.kplus.net.ua/yevhen/resource-scraper/pkg/service"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
func isAllowScope() bool {
|
func isAllowScope() bool {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
func New() {
|
func New() {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
const usage = `Music Database (MDB) server/cli craftware'
|
const usage = `Music Database (MDB) server/cli craftware'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/go-chi/cors"
|
"github.com/go-chi/cors"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/helper/web"
|
"git.kplus.net.ua/yevhen/resource-scraper/helper/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*type Server struct {
|
/*type Server struct {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/logrusorgru/aurora/v4"
|
"github.com/logrusorgru/aurora/v4"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/helper/sugar"
|
"git.kplus.net.ua/yevhen/resource-scraper/helper/sugar"
|
||||||
)
|
)
|
||||||
|
|
||||||
type EmailService struct {
|
type EmailService struct {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"github.com/iancoleman/strcase"
|
"github.com/iancoleman/strcase"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/pkg/service"
|
"git.kplus.net.ua/yevhen/resource-scraper/pkg/service"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Handler struct {
|
type Handler struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/mewkiz/flac"
|
"github.com/mewkiz/flac"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *Handler) Info() string {
|
func (h *Handler) Info() string {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *Handler) Prescene() string {
|
func (h *Handler) Prescene() string {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *Handler) STB() string {
|
func (h *Handler) STB() string {
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ import (
|
|||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/helper/parser"
|
"git.kplus.net.ua/yevhen/resource-scraper/helper/parser"
|
||||||
"git.amok.space/yevhen/resource-scraper/pkg/repository/table"
|
"git.kplus.net.ua/yevhen/resource-scraper/pkg/repository/table"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/model"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Prescene struct {
|
type Prescene struct {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package repository
|
|||||||
import (
|
import (
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/types/interface"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/interface"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Repository struct {
|
type Repository struct {
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ import (
|
|||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/pkg/repository/table"
|
"git.kplus.net.ua/yevhen/resource-scraper/pkg/repository/table"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/model"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/model"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/resource"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/resource"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Rutracker struct {
|
type Rutracker struct {
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
"github.com/logrusorgru/aurora/v4"
|
"github.com/logrusorgru/aurora/v4"
|
||||||
|
|
||||||
"git.amok.space/yevhen/resource-scraper/helper/thither"
|
"git.kplus.net.ua/yevhen/resource-scraper/helper/thither"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/constant"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/model"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ExternalSources struct {
|
type ExternalSources struct {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.amok.space/yevhen/resource-scraper/types/interface"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/interface"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/model"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PresceneService struct {
|
type PresceneService struct {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.amok.space/yevhen/resource-scraper/types/interface"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/interface"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/model"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RutrackerService struct {
|
type RutrackerService struct {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.amok.space/yevhen/resource-scraper/pkg/repository"
|
"git.kplus.net.ua/yevhen/resource-scraper/pkg/repository"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/interface"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/interface"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Service struct {
|
type Service struct {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.amok.space/yevhen/resource-scraper/internal/mail"
|
"git.kplus.net.ua/yevhen/resource-scraper/internal/mail"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/interface"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/interface"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/model"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ShareTheBrutalityService struct {
|
type ShareTheBrutalityService struct {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package _interface
|
package _interface
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.amok.space/yevhen/resource-scraper/internal/mail"
|
"git.kplus.net.ua/yevhen/resource-scraper/internal/mail"
|
||||||
"git.amok.space/yevhen/resource-scraper/types/model"
|
"git.kplus.net.ua/yevhen/resource-scraper/types/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Rutracker interface {
|
type Rutracker interface {
|
||||||
|
|||||||
Reference in New Issue
Block a user