Skip to content

Commit

Permalink
update:更新mod name
Browse files Browse the repository at this point in the history
  • Loading branch information
qinguoyi committed Jul 16, 2023
1 parent f3232fb commit cb0bca7
Show file tree
Hide file tree
Showing 46 changed files with 134 additions and 134 deletions.
10 changes: 5 additions & 5 deletions api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package api

import (
"github.com/gin-gonic/gin"
v0 "github.com/qinguoyi/ObjectStorageProxy/api/v0"
"github.com/qinguoyi/ObjectStorageProxy/app/middleware"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap"
"github.com/qinguoyi/ObjectStorageProxy/config"
"github.com/qinguoyi/ObjectStorageProxy/docs"
v0 "github.com/qinguoyi/osproxy/api/v0"
"github.com/qinguoyi/osproxy/app/middleware"
"github.com/qinguoyi/osproxy/bootstrap"
"github.com/qinguoyi/osproxy/config"
"github.com/qinguoyi/osproxy/docs"
gs "github.com/swaggo/gin-swagger"
"github.com/swaggo/gin-swagger/swaggerFiles"
)
Expand Down
6 changes: 3 additions & 3 deletions api/v0/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package v0

import (
"github.com/gin-gonic/gin"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/web"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/app/pkg/web"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"strconv"
)

Expand Down
18 changes: 9 additions & 9 deletions api/v0/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/go-redis/redis/v8"
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/base"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/storage"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/thirdparty"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/web"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/models"
"github.com/qinguoyi/osproxy/app/pkg/base"
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/app/pkg/storage"
"github.com/qinguoyi/osproxy/app/pkg/thirdparty"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/app/pkg/web"
"github.com/qinguoyi/osproxy/bootstrap"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"io"
"net/http"
"os"
Expand Down
6 changes: 3 additions & 3 deletions api/v0/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package v0
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/web"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/pkg/web"
"github.com/qinguoyi/osproxy/bootstrap"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
)

var lgLogger *bootstrap.LangGoLogger
Expand Down
12 changes: 6 additions & 6 deletions api/v0/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/go-redis/redis/v8"
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/base"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/web"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/models"
"github.com/qinguoyi/osproxy/app/pkg/base"
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/app/pkg/web"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"go.uber.org/zap"
"os"
"path"
Expand Down
6 changes: 3 additions & 3 deletions api/v0/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package v0
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/base"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/web"
"github.com/qinguoyi/osproxy/app/pkg/base"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/app/pkg/web"
"os"
"path"
"strconv"
Expand Down
12 changes: 6 additions & 6 deletions api/v0/resume.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/base"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/web"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/models"
"github.com/qinguoyi/osproxy/app/pkg/base"
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/app/pkg/web"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"go.uber.org/zap"
"path/filepath"
"time"
Expand Down
18 changes: 9 additions & 9 deletions api/v0/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import (
"encoding/json"
"fmt"
"github.com/gin-gonic/gin"
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/base"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/storage"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/thirdparty"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/web"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/models"
"github.com/qinguoyi/osproxy/app/pkg/base"
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/app/pkg/storage"
"github.com/qinguoyi/osproxy/app/pkg/thirdparty"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/app/pkg/web"
"github.com/qinguoyi/osproxy/bootstrap"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"go.uber.org/zap"
"io"
"os"
Expand Down
6 changes: 3 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package app
import (
"context"
"github.com/gin-gonic/gin"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/base"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/event/dispatch"
"github.com/qinguoyi/ObjectStorageProxy/config"
"github.com/qinguoyi/osproxy/app/pkg/base"
"github.com/qinguoyi/osproxy/app/pkg/event/dispatch"
"github.com/qinguoyi/osproxy/config"
"go.uber.org/zap"
"log"
"net/http"
Expand Down
4 changes: 2 additions & 2 deletions app/middleware/panic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package middleware
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/web"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap"
"github.com/qinguoyi/osproxy/app/pkg/web"
"github.com/qinguoyi/osproxy/bootstrap"
"go.uber.org/zap"
"net/http"
"runtime/debug"
Expand Down
2 changes: 1 addition & 1 deletion app/middleware/requestlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"fmt"
"github.com/gin-gonic/gin"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap"
"github.com/qinguoyi/osproxy/bootstrap"
"go.uber.org/zap"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion app/middleware/tracelogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package middleware
import (
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap"
"github.com/qinguoyi/osproxy/bootstrap"
"go.uber.org/zap"
)

Expand Down
4 changes: 2 additions & 2 deletions app/pkg/base/dbgenerate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package base

import (
"errors"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"gorm.io/gorm"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion app/pkg/base/encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"crypto/sha256"
"encoding/hex"
"fmt"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/app/pkg/utils"
)

func decode(message string) string {
Expand Down
6 changes: 3 additions & 3 deletions app/pkg/base/registanddiscover.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"encoding/json"
"fmt"
"github.com/go-redis/redis/v8"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/bootstrap"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"io"
"strings"
"time"
Expand Down
4 changes: 2 additions & 2 deletions app/pkg/base/snowflaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package base
import (
"context"
"errors"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"strconv"
"sync"
"time"
Expand Down
8 changes: 4 additions & 4 deletions app/pkg/base/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/models"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/bootstrap"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"os"
"path"
"path/filepath"
Expand Down
10 changes: 5 additions & 5 deletions app/pkg/event/dispatch/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package dispatch

import (
"fmt"
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/event"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/models"
"github.com/qinguoyi/osproxy/app/pkg/event"
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"gorm.io/gorm"
"sync"
)
Expand Down
10 changes: 5 additions & 5 deletions app/pkg/event/dispatch/dispatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package dispatch

import (
"context"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/base"
_ "github.com/qinguoyi/ObjectStorageProxy/app/pkg/event/handlers" // 为了执行handlers包里的init 自动注册
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/pkg/base"
_ "github.com/qinguoyi/osproxy/app/pkg/event/handlers" // 为了执行handlers包里的init 自动注册
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
)

var (
Expand Down
10 changes: 5 additions & 5 deletions app/pkg/event/dispatch/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package dispatch

import (
"fmt"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/base"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/event"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/pkg/base"
"github.com/qinguoyi/osproxy/app/pkg/event"
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"sync"
"time"
)
Expand Down
12 changes: 6 additions & 6 deletions app/pkg/event/handlers/partdelete.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/event"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/storage"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/models"
"github.com/qinguoyi/osproxy/app/pkg/event"
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/app/pkg/storage"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"os"
"path"
)
Expand Down
14 changes: 7 additions & 7 deletions app/pkg/event/handlers/partmerge.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/base"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/event"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/repo"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/storage"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap/plugins"
"github.com/qinguoyi/osproxy/app/models"
"github.com/qinguoyi/osproxy/app/pkg/base"
"github.com/qinguoyi/osproxy/app/pkg/event"
"github.com/qinguoyi/osproxy/app/pkg/repo"
"github.com/qinguoyi/osproxy/app/pkg/storage"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/bootstrap/plugins"
"io"
"os"
"path"
Expand Down
2 changes: 1 addition & 1 deletion app/pkg/repo/metadatainfo.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package repo

import (
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/osproxy/app/models"
"gorm.io/gorm"
)

Expand Down
2 changes: 1 addition & 1 deletion app/pkg/repo/multipartinfo.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package repo

import (
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/osproxy/app/models"
"gorm.io/gorm"
)

Expand Down
4 changes: 2 additions & 2 deletions app/pkg/repo/taskinfo.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package repo

import (
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/app/models"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"gorm.io/gorm"
)

Expand Down
2 changes: 1 addition & 1 deletion app/pkg/repo/tasklog.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package repo

import (
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/osproxy/app/models"
"gorm.io/gorm"
)

Expand Down
2 changes: 1 addition & 1 deletion app/pkg/repo/uid.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package repo

import (
"github.com/qinguoyi/ObjectStorageProxy/app/models"
"github.com/qinguoyi/osproxy/app/models"
"gorm.io/gorm"
)

Expand Down
4 changes: 2 additions & 2 deletions app/pkg/storage/cosstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package storage
import (
"context"
"fmt"
"github.com/qinguoyi/ObjectStorageProxy/app/pkg/utils"
"github.com/qinguoyi/ObjectStorageProxy/bootstrap"
"github.com/qinguoyi/osproxy/app/pkg/utils"
"github.com/qinguoyi/osproxy/bootstrap"
"github.com/tencentyun/cos-go-sdk-v5"
"io/ioutil"
"net/http"
Expand Down
Loading

0 comments on commit cb0bca7

Please sign in to comment.