chore: rename packages to org name

This commit is contained in:
Bhunter 2024-08-31 15:50:17 +00:00
parent c7917fe9a7
commit 5fd41050e3
42 changed files with 155 additions and 150 deletions

View file

@ -5,7 +5,11 @@ on:
tags: tags:
- "*" - "*"
permissions: write-all permissions:
packages: write
contents: read
attestations: write
id-token: write
jobs: jobs:
goreleaser: goreleaser:
@ -34,7 +38,7 @@ jobs:
- name: Build UI - name: Build UI
run: | run: |
git clone https://github.com/divyam234/teldrive-ui git clone https://github.com/tgdrive/teldrive-ui
cd teldrive-ui cd teldrive-ui
pnpm install --frozen-lockfile pnpm install --frozen-lockfile
export VITE_SERVER_VERSION=$GITHUB_REF_NAME export VITE_SERVER_VERSION=$GITHUB_REF_NAME
@ -42,6 +46,7 @@ jobs:
cd .. cd ..
mv teldrive-ui/dist ui/dist mv teldrive-ui/dist ui/dist
rm -rf teldrive-ui rm -rf teldrive-ui
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6 uses: goreleaser/goreleaser-action@v6
with: with:

View file

@ -36,15 +36,15 @@ archives:
- LICENSE - LICENSE
dockers: dockers:
- image_templates: - image_templates:
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-amd64" - "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-amd64"
use: buildx use: buildx
dockerfile: goreleaser.dockerfile dockerfile: goreleaser.dockerfile
build_flag_templates: build_flag_templates:
- "--platform=linux/amd64" - "--platform=linux/amd64"
- image_templates: - image_templates:
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-arm64" - "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-arm64"
- "ghcr.io/divyam234/{{ .ProjectName }}:latest" - "ghcr.io/tgdrive/{{ .ProjectName }}:latest"
use: buildx use: buildx
dockerfile: goreleaser.dockerfile dockerfile: goreleaser.dockerfile
goarch: arm64 goarch: arm64
@ -52,14 +52,14 @@ dockers:
- --platform=linux/arm64/v8 - --platform=linux/arm64/v8
docker_manifests: docker_manifests:
- name_template: "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}" - name_template: "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}"
image_templates: image_templates:
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-amd64" - "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-arm64" - "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-arm64"
- name_template: "ghcr.io/divyam234/{{ .ProjectName }}:latest" - name_template: "ghcr.io/tgdrive/{{ .ProjectName }}:latest"
image_templates: image_templates:
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-amd64" - "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-arm64" - "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-arm64"
changelog: changelog:
sort: asc sort: asc

View file

@ -7,7 +7,7 @@ endif
APP_NAME := teldrive APP_NAME := teldrive
BUILD_DIR := bin BUILD_DIR := bin
FRONTEND_DIR := ui/dist FRONTEND_DIR := ui/dist
FRONTEND_ASSET := https://github.com/divyam234/teldrive-ui/releases/download/v1/teldrive-ui.zip FRONTEND_ASSET := https://github.com/tgdrive/teldrive-ui/releases/download/v1/teldrive-ui.zip
GIT_TAG := $(shell git describe --tags --abbrev=0) GIT_TAG := $(shell git describe --tags --abbrev=0)
GIT_COMMIT := $(shell git rev-parse --short HEAD) GIT_COMMIT := $(shell git rev-parse --short HEAD)
GIT_LINK := $(shell git remote get-url origin) GIT_LINK := $(shell git remote get-url origin)

View file

@ -36,7 +36,7 @@ Telegram Drive is a powerful utility that enables you to organise your telegram
<br> <br>
[UI Repo ](https://github.com/divyam234/teldrive-ui) [UI Repo ](https://github.com/tgdrive/teldrive-ui)
[UI Library ](https://github.com/divyam234/tw-material) [UI Library ](https://github.com/divyam234/tw-material)
@ -47,19 +47,19 @@ Telegram Drive is a powerful utility that enables you to organise your telegram
#### Linux #### Linux
```bash ```bash
curl -sSL https://instl.vercel.app/divyam234/teldrive/linux | bash curl -sSL https://instl.vercel.app/tgdrive/teldrive/linux | bash
``` ```
#### Windows #### Windows
```powershell ```powershell
iwr https://instl.vercel.app/divyam234/teldrive/windows | iex iwr https://instl.vercel.app/tgdrive/teldrive/windows | iex
``` ```
#### macOS #### macOS
```bash ```bash
curl -sSL https://instl.vercel.app/divyam234/teldrive/macos | bash curl -sSL https://instl.vercel.app/tgdrive/teldrive/macos | bash
``` ```
### Deploy using docker-compose ### Deploy using docker-compose
@ -128,7 +128,7 @@ teldrive run --tg-app-id="" --tg-app-hash="" --jwt-secret="" --db-data-source=""
- Default Channel can be selected through UI. Make sure to set it from account settings on first login. - Default Channel can be selected through UI. Make sure to set it from account settings on first login.
- Multi Bots Mode is recommended to avoid flood errors and enable maximum download speed, especially if you are using downloaders like IDM and aria2c, which use multiple connections for downloads. - Multi Bots Mode is recommended to avoid flood errors and enable maximum download speed, especially if you are using downloaders like IDM and aria2c, which use multiple connections for downloads.
- To enable multi bots, generate new bot tokens from BotFather and add them through UI on first login. - To enable multi bots, generate new bot tokens from BotFather and add them through UI on first login.
- Uploads from UI will be slower due to limitations of the browser. Use modified [Rclone](https://github.com/divyam234/rclone) version for teldrive. - Uploads from UI will be slower due to limitations of the browser. Use modified [Rclone](https://github.com/tgdrive/rclone) version for teldrive.
- Files are deleted at regular interval of one hour through cron job from tg channel after its deleted from teldrive this is done so that person can recover files if he/she accidently deletes them. - Files are deleted at regular interval of one hour through cron job from tg channel after its deleted from teldrive this is done so that person can recover files if he/she accidently deletes them.
### Advanced Configuration ### Advanced Configuration

View file

@ -1,12 +1,12 @@
package api package api
import ( import (
"github.com/divyam234/teldrive/internal/cache"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/middleware"
"github.com/divyam234/teldrive/pkg/controller"
"github.com/divyam234/teldrive/ui"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/tgdrive/teldrive/internal/cache"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/middleware"
"github.com/tgdrive/teldrive/pkg/controller"
"github.com/tgdrive/teldrive/ui"
"gorm.io/gorm" "gorm.io/gorm"
) )

View file

@ -11,19 +11,6 @@ import (
"time" "time"
"unicode" "unicode"
"github.com/divyam234/teldrive/api"
"github.com/divyam234/teldrive/internal/cache"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/database"
"github.com/divyam234/teldrive/internal/duration"
"github.com/divyam234/teldrive/internal/kv"
"github.com/divyam234/teldrive/internal/logging"
"github.com/divyam234/teldrive/internal/middleware"
"github.com/divyam234/teldrive/internal/tgc"
"github.com/divyam234/teldrive/internal/utils"
"github.com/divyam234/teldrive/pkg/controller"
"github.com/divyam234/teldrive/pkg/cron"
"github.com/divyam234/teldrive/pkg/services"
"github.com/gin-contrib/gzip" "github.com/gin-contrib/gzip"
"github.com/gin-contrib/pprof" "github.com/gin-contrib/pprof"
ginzap "github.com/gin-contrib/zap" ginzap "github.com/gin-contrib/zap"
@ -33,6 +20,19 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/tgdrive/teldrive/api"
"github.com/tgdrive/teldrive/internal/cache"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/database"
"github.com/tgdrive/teldrive/internal/duration"
"github.com/tgdrive/teldrive/internal/kv"
"github.com/tgdrive/teldrive/internal/logging"
"github.com/tgdrive/teldrive/internal/middleware"
"github.com/tgdrive/teldrive/internal/tgc"
"github.com/tgdrive/teldrive/internal/utils"
"github.com/tgdrive/teldrive/pkg/controller"
"github.com/tgdrive/teldrive/pkg/cron"
"github.com/tgdrive/teldrive/pkg/services"
"go.uber.org/fx" "go.uber.org/fx"
"go.uber.org/zap/zapcore" "go.uber.org/zap/zapcore"
"gorm.io/gorm" "gorm.io/gorm"

View file

@ -3,8 +3,8 @@ package cmd
import ( import (
"runtime" "runtime"
"github.com/divyam234/teldrive/internal/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/tgdrive/teldrive/internal/config"
) )
func NewVersion() *cobra.Command { func NewVersion() *cobra.Command {

View file

@ -1,6 +1,6 @@
services: services:
teldrive: teldrive:
image: ghcr.io/divyam234/teldrive image: ghcr.io/tgdrive/teldrive
restart: always restart: always
container_name: teldrive container_name: teldrive
networks: networks:

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/divyam234/teldrive module github.com/tgdrive/teldrive
go 1.22 go 1.22

View file

@ -5,11 +5,11 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/divyam234/teldrive/internal/cache"
"github.com/divyam234/teldrive/pkg/models"
"github.com/divyam234/teldrive/pkg/types"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5" "github.com/golang-jwt/jwt/v5"
"github.com/tgdrive/teldrive/internal/cache"
"github.com/tgdrive/teldrive/pkg/models"
"github.com/tgdrive/teldrive/pkg/types"
"gorm.io/gorm" "gorm.io/gorm"
) )

View file

@ -6,8 +6,8 @@ import (
"time" "time"
"github.com/coocood/freecache" "github.com/coocood/freecache"
"github.com/divyam234/teldrive/internal/config"
"github.com/redis/go-redis/v9" "github.com/redis/go-redis/v9"
"github.com/tgdrive/teldrive/internal/config"
"github.com/vmihailenco/msgpack/v5" "github.com/vmihailenco/msgpack/v5"
) )

View file

@ -4,8 +4,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/tgdrive/teldrive/pkg/schemas"
) )
func TestCache(t *testing.T) { func TestCache(t *testing.T) {

View file

@ -3,8 +3,8 @@ package database
import ( import (
"time" "time"
"github.com/divyam234/teldrive/internal/config" "github.com/tgdrive/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/logging" "github.com/tgdrive/teldrive/internal/logging"
extraClausePlugin "github.com/WinterYukky/gorm-extra-clause-plugin" extraClausePlugin "github.com/WinterYukky/gorm-extra-clause-plugin"
"go.uber.org/zap/zapcore" "go.uber.org/zap/zapcore"

View file

@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/divyam234/teldrive/internal/logging" "github.com/tgdrive/teldrive/internal/logging"
"go.uber.org/zap" "go.uber.org/zap"
"go.uber.org/zap/zapcore" "go.uber.org/zap/zapcore"

View file

@ -5,9 +5,9 @@ import (
"path/filepath" "path/filepath"
"time" "time"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/utils"
"github.com/mitchellh/go-homedir" "github.com/mitchellh/go-homedir"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/utils"
"go.etcd.io/bbolt" "go.etcd.io/bbolt"
) )

View file

@ -6,9 +6,9 @@ import (
"time" "time"
"github.com/divyam234/cors" "github.com/divyam234/cors"
"github.com/divyam234/teldrive/internal/auth"
"github.com/divyam234/teldrive/internal/cache"
"github.com/gin-contrib/secure" "github.com/gin-contrib/secure"
"github.com/tgdrive/teldrive/internal/auth"
"github.com/tgdrive/teldrive/internal/cache"
"gorm.io/gorm" "gorm.io/gorm"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"

View file

@ -5,9 +5,9 @@ import (
"context" "context"
"sync" "sync"
"github.com/divyam234/teldrive/internal/logging"
"github.com/gotd/td/telegram" "github.com/gotd/td/telegram"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"github.com/tgdrive/teldrive/internal/logging"
"go.uber.org/zap" "go.uber.org/zap"
) )

View file

@ -5,13 +5,13 @@ import (
"fmt" "fmt"
"io" "io"
"github.com/divyam234/teldrive/internal/cache"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/crypt"
"github.com/divyam234/teldrive/internal/tgc"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/divyam234/teldrive/pkg/types"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"github.com/tgdrive/teldrive/internal/cache"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/crypt"
"github.com/tgdrive/teldrive/internal/tgc"
"github.com/tgdrive/teldrive/pkg/schemas"
"github.com/tgdrive/teldrive/pkg/types"
) )
type DecrpytedReader struct { type DecrpytedReader struct {

View file

@ -5,12 +5,12 @@ import (
"fmt" "fmt"
"io" "io"
"github.com/divyam234/teldrive/internal/cache"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/tgc"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/divyam234/teldrive/pkg/types"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"github.com/tgdrive/teldrive/internal/cache"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/tgc"
"github.com/tgdrive/teldrive/pkg/schemas"
"github.com/tgdrive/teldrive/pkg/types"
) )
type Range struct { type Range struct {

View file

@ -7,10 +7,10 @@ import (
"io" "io"
"time" "time"
"github.com/divyam234/teldrive/internal/cache"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/tgc"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"github.com/tgdrive/teldrive/internal/cache"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/tgc"
"golang.org/x/sync/errgroup" "golang.org/x/sync/errgroup"
) )

View file

@ -7,9 +7,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/divyam234/teldrive/internal/config"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/tgdrive/teldrive/internal/config"
) )
type testChunkSource struct { type testChunkSource struct {

View file

@ -9,11 +9,11 @@ import (
"runtime" "runtime"
"sync" "sync"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/kv"
"github.com/divyam234/teldrive/pkg/types"
"github.com/gotd/td/telegram" "github.com/gotd/td/telegram"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/kv"
"github.com/tgdrive/teldrive/pkg/types"
"golang.org/x/sync/errgroup" "golang.org/x/sync/errgroup"
) )

View file

@ -3,9 +3,9 @@ package tgc
import ( import (
"context" "context"
"github.com/divyam234/teldrive/internal/logging"
"github.com/gotd/td/telegram" "github.com/gotd/td/telegram"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tgdrive/teldrive/internal/logging"
"go.uber.org/zap" "go.uber.org/zap"
) )

View file

@ -5,18 +5,18 @@ import (
"time" "time"
"github.com/cenkalti/backoff/v4" "github.com/cenkalti/backoff/v4"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/kv"
"github.com/divyam234/teldrive/internal/logging"
"github.com/divyam234/teldrive/internal/recovery"
"github.com/divyam234/teldrive/internal/retry"
"github.com/divyam234/teldrive/internal/utils"
"github.com/gotd/contrib/middleware/floodwait" "github.com/gotd/contrib/middleware/floodwait"
"github.com/gotd/contrib/middleware/ratelimit" "github.com/gotd/contrib/middleware/ratelimit"
"github.com/gotd/td/session" "github.com/gotd/td/session"
"github.com/gotd/td/telegram" "github.com/gotd/td/telegram"
"github.com/gotd/td/telegram/dcs" "github.com/gotd/td/telegram/dcs"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/kv"
"github.com/tgdrive/teldrive/internal/logging"
"github.com/tgdrive/teldrive/internal/recovery"
"github.com/tgdrive/teldrive/internal/retry"
"github.com/tgdrive/teldrive/internal/utils"
"go.uber.org/zap" "go.uber.org/zap"
"golang.org/x/net/proxy" "golang.org/x/net/proxy"
"golang.org/x/time/rate" "golang.org/x/time/rate"

View file

@ -6,9 +6,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/kv"
"github.com/gotd/td/telegram" "github.com/gotd/td/telegram"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/kv"
"go.uber.org/zap" "go.uber.org/zap"
) )

View file

@ -5,7 +5,7 @@ import (
"os" "os"
"os/signal" "os/signal"
"github.com/divyam234/teldrive/cmd" "github.com/tgdrive/teldrive/cmd"
) )
func main() { func main() {

View file

@ -3,9 +3,9 @@ package controller
import ( import (
"net/http" "net/http"
"github.com/divyam234/teldrive/pkg/httputil"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/tgdrive/teldrive/pkg/httputil"
"github.com/tgdrive/teldrive/pkg/schemas"
) )
func (ac *Controller) GetSession(c *gin.Context) { func (ac *Controller) GetSession(c *gin.Context) {

View file

@ -1,7 +1,7 @@
package controller package controller
import ( import (
"github.com/divyam234/teldrive/pkg/services" "github.com/tgdrive/teldrive/pkg/services"
) )
type Controller struct { type Controller struct {

View file

@ -3,10 +3,10 @@ package controller
import ( import (
"net/http" "net/http"
"github.com/divyam234/teldrive/internal/auth"
"github.com/divyam234/teldrive/pkg/httputil"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/tgdrive/teldrive/internal/auth"
"github.com/tgdrive/teldrive/pkg/httputil"
"github.com/tgdrive/teldrive/pkg/schemas"
) )
func (fc *Controller) CreateFile(c *gin.Context) { func (fc *Controller) CreateFile(c *gin.Context) {

View file

@ -4,9 +4,9 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/divyam234/teldrive/internal/auth"
"github.com/divyam234/teldrive/pkg/httputil"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/tgdrive/teldrive/internal/auth"
"github.com/tgdrive/teldrive/pkg/httputil"
) )
func (uc *Controller) GetUploadFileById(c *gin.Context) { func (uc *Controller) GetUploadFileById(c *gin.Context) {

View file

@ -3,8 +3,8 @@ package controller
import ( import (
"net/http" "net/http"
"github.com/divyam234/teldrive/pkg/httputil"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/tgdrive/teldrive/pkg/httputil"
) )
func (uc *Controller) GetStats(c *gin.Context) { func (uc *Controller) GetStats(c *gin.Context) {

View file

@ -4,13 +4,13 @@ import (
"context" "context"
"time" "time"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/logging"
"github.com/divyam234/teldrive/internal/tgc"
"github.com/divyam234/teldrive/pkg/models"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/go-co-op/gocron" "github.com/go-co-op/gocron"
"github.com/jackc/pgx/v5/pgtype" "github.com/jackc/pgx/v5/pgtype"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/logging"
"github.com/tgdrive/teldrive/internal/tgc"
"github.com/tgdrive/teldrive/pkg/models"
"github.com/tgdrive/teldrive/pkg/schemas"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/datatypes" "gorm.io/datatypes"
"gorm.io/gorm" "gorm.io/gorm"

View file

@ -1,8 +1,8 @@
package httputil package httputil
import ( import (
"github.com/divyam234/teldrive/internal/logging"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/tgdrive/teldrive/internal/logging"
) )
func NewError(ctx *gin.Context, status int, err error) { func NewError(ctx *gin.Context, status int, err error) {

View file

@ -1,8 +1,8 @@
package mapper package mapper
import ( import (
"github.com/divyam234/teldrive/pkg/models" "github.com/tgdrive/teldrive/pkg/models"
"github.com/divyam234/teldrive/pkg/schemas" "github.com/tgdrive/teldrive/pkg/schemas"
) )
func ToFileOut(file models.File) *schemas.FileOut { func ToFileOut(file models.File) *schemas.FileOut {

View file

@ -4,7 +4,7 @@ import (
"database/sql" "database/sql"
"time" "time"
"github.com/divyam234/teldrive/pkg/schemas" "github.com/tgdrive/teldrive/pkg/schemas"
"gorm.io/datatypes" "gorm.io/datatypes"
) )

View file

@ -16,13 +16,6 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/divyam234/teldrive/internal/auth"
"github.com/divyam234/teldrive/internal/cache"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/tgc"
"github.com/divyam234/teldrive/pkg/models"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/divyam234/teldrive/pkg/types"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5" "github.com/golang-jwt/jwt/v5"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
@ -31,6 +24,13 @@ import (
"github.com/gotd/td/telegram/auth/qrlogin" "github.com/gotd/td/telegram/auth/qrlogin"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"github.com/gotd/td/tgerr" "github.com/gotd/td/tgerr"
"github.com/tgdrive/teldrive/internal/auth"
"github.com/tgdrive/teldrive/internal/cache"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/tgc"
"github.com/tgdrive/teldrive/pkg/models"
"github.com/tgdrive/teldrive/pkg/schemas"
"github.com/tgdrive/teldrive/pkg/types"
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
) )

View file

@ -5,15 +5,15 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/divyam234/teldrive/internal/cache"
"github.com/divyam234/teldrive/internal/crypt"
"github.com/divyam234/teldrive/internal/tgc"
"github.com/divyam234/teldrive/pkg/models"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/divyam234/teldrive/pkg/types"
"github.com/gotd/td/telegram" "github.com/gotd/td/telegram"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tgdrive/teldrive/internal/cache"
"github.com/tgdrive/teldrive/internal/crypt"
"github.com/tgdrive/teldrive/internal/tgc"
"github.com/tgdrive/teldrive/pkg/models"
"github.com/tgdrive/teldrive/pkg/schemas"
"github.com/tgdrive/teldrive/pkg/types"
"gorm.io/gorm" "gorm.io/gorm"
) )

View file

@ -16,24 +16,24 @@ import (
"time" "time"
"github.com/WinterYukky/gorm-extra-clause-plugin/exclause" "github.com/WinterYukky/gorm-extra-clause-plugin/exclause"
"github.com/divyam234/teldrive/internal/auth"
"github.com/divyam234/teldrive/internal/cache"
"github.com/divyam234/teldrive/internal/category"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/database"
"github.com/divyam234/teldrive/internal/http_range"
"github.com/divyam234/teldrive/internal/kv"
"github.com/divyam234/teldrive/internal/md5"
"github.com/divyam234/teldrive/internal/reader"
"github.com/divyam234/teldrive/internal/tgc"
"github.com/divyam234/teldrive/internal/utils"
"github.com/divyam234/teldrive/pkg/mapper"
"github.com/divyam234/teldrive/pkg/models"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/divyam234/teldrive/pkg/types"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/gotd/td/telegram" "github.com/gotd/td/telegram"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"github.com/tgdrive/teldrive/internal/auth"
"github.com/tgdrive/teldrive/internal/cache"
"github.com/tgdrive/teldrive/internal/category"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/database"
"github.com/tgdrive/teldrive/internal/http_range"
"github.com/tgdrive/teldrive/internal/kv"
"github.com/tgdrive/teldrive/internal/md5"
"github.com/tgdrive/teldrive/internal/reader"
"github.com/tgdrive/teldrive/internal/tgc"
"github.com/tgdrive/teldrive/internal/utils"
"github.com/tgdrive/teldrive/pkg/mapper"
"github.com/tgdrive/teldrive/pkg/models"
"github.com/tgdrive/teldrive/pkg/schemas"
"github.com/tgdrive/teldrive/pkg/types"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/datatypes" "gorm.io/datatypes"

View file

@ -3,12 +3,12 @@ package services
import ( import (
"testing" "testing"
"github.com/divyam234/teldrive/internal/database"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/tgdrive/teldrive/internal/database"
"github.com/divyam234/teldrive/pkg/models"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/tgdrive/teldrive/pkg/models"
"github.com/tgdrive/teldrive/pkg/schemas"
"gorm.io/gorm" "gorm.io/gorm"
) )

View file

@ -13,25 +13,25 @@ import (
"strings" "strings"
"time" "time"
"github.com/divyam234/teldrive/internal/auth" "github.com/tgdrive/teldrive/internal/auth"
"github.com/divyam234/teldrive/internal/cache" "github.com/tgdrive/teldrive/internal/cache"
"github.com/divyam234/teldrive/internal/crypt" "github.com/tgdrive/teldrive/internal/crypt"
"github.com/divyam234/teldrive/internal/kv" "github.com/tgdrive/teldrive/internal/kv"
"github.com/divyam234/teldrive/internal/logging" "github.com/tgdrive/teldrive/internal/logging"
"github.com/divyam234/teldrive/internal/pool" "github.com/tgdrive/teldrive/internal/pool"
"github.com/divyam234/teldrive/internal/tgc" "github.com/tgdrive/teldrive/internal/tgc"
"github.com/divyam234/teldrive/pkg/mapper" "github.com/tgdrive/teldrive/pkg/mapper"
"github.com/divyam234/teldrive/pkg/schemas" "github.com/tgdrive/teldrive/pkg/schemas"
"github.com/divyam234/teldrive/pkg/types" "github.com/tgdrive/teldrive/pkg/types"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/pkg/models"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/gotd/td/telegram" "github.com/gotd/td/telegram"
"github.com/gotd/td/telegram/message" "github.com/gotd/td/telegram/message"
"github.com/gotd/td/telegram/uploader" "github.com/gotd/td/telegram/uploader"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/pkg/models"
"gorm.io/gorm" "gorm.io/gorm"
) )

View file

@ -3,10 +3,10 @@ package services
import ( import (
"testing" "testing"
"github.com/divyam234/teldrive/internal/database" "github.com/tgdrive/teldrive/internal/database"
"github.com/divyam234/teldrive/pkg/models"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/tgdrive/teldrive/pkg/models"
"gorm.io/gorm" "gorm.io/gorm"
) )

View file

@ -11,19 +11,19 @@ import (
"sync" "sync"
"time" "time"
"github.com/divyam234/teldrive/internal/auth"
"github.com/divyam234/teldrive/internal/cache"
"github.com/divyam234/teldrive/internal/config"
"github.com/divyam234/teldrive/internal/kv"
"github.com/divyam234/teldrive/internal/tgc"
"github.com/divyam234/teldrive/pkg/models"
"github.com/divyam234/teldrive/pkg/schemas"
"github.com/divyam234/teldrive/pkg/types"
"github.com/gotd/td/telegram" "github.com/gotd/td/telegram"
"github.com/gotd/td/telegram/message/peer" "github.com/gotd/td/telegram/message/peer"
"github.com/gotd/td/telegram/query" "github.com/gotd/td/telegram/query"
"github.com/gotd/td/tg" "github.com/gotd/td/tg"
"github.com/gotd/td/tgerr" "github.com/gotd/td/tgerr"
"github.com/tgdrive/teldrive/internal/auth"
"github.com/tgdrive/teldrive/internal/cache"
"github.com/tgdrive/teldrive/internal/config"
"github.com/tgdrive/teldrive/internal/kv"
"github.com/tgdrive/teldrive/internal/tgc"
"github.com/tgdrive/teldrive/pkg/models"
"github.com/tgdrive/teldrive/pkg/schemas"
"github.com/tgdrive/teldrive/pkg/types"
"golang.org/x/sync/errgroup" "golang.org/x/sync/errgroup"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"