mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-09-20 08:15:55 +08:00
chore: rename packages to org name
This commit is contained in:
parent
c7917fe9a7
commit
5fd41050e3
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
@ -5,7 +5,11 @@ on:
|
|||
tags:
|
||||
- "*"
|
||||
|
||||
permissions: write-all
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
attestations: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
goreleaser:
|
||||
|
@ -34,7 +38,7 @@ jobs:
|
|||
|
||||
- name: Build UI
|
||||
run: |
|
||||
git clone https://github.com/divyam234/teldrive-ui
|
||||
git clone https://github.com/tgdrive/teldrive-ui
|
||||
cd teldrive-ui
|
||||
pnpm install --frozen-lockfile
|
||||
export VITE_SERVER_VERSION=$GITHUB_REF_NAME
|
||||
|
@ -42,6 +46,7 @@ jobs:
|
|||
cd ..
|
||||
mv teldrive-ui/dist ui/dist
|
||||
rm -rf teldrive-ui
|
||||
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
|
|
|
@ -36,15 +36,15 @@ archives:
|
|||
- LICENSE
|
||||
dockers:
|
||||
- image_templates:
|
||||
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-amd64"
|
||||
- "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-amd64"
|
||||
use: buildx
|
||||
dockerfile: goreleaser.dockerfile
|
||||
build_flag_templates:
|
||||
- "--platform=linux/amd64"
|
||||
|
||||
- image_templates:
|
||||
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-arm64"
|
||||
- "ghcr.io/divyam234/{{ .ProjectName }}:latest"
|
||||
- "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-arm64"
|
||||
- "ghcr.io/tgdrive/{{ .ProjectName }}:latest"
|
||||
use: buildx
|
||||
dockerfile: goreleaser.dockerfile
|
||||
goarch: arm64
|
||||
|
@ -52,14 +52,14 @@ dockers:
|
|||
- --platform=linux/arm64/v8
|
||||
|
||||
docker_manifests:
|
||||
- name_template: "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}"
|
||||
- name_template: "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}"
|
||||
image_templates:
|
||||
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-amd64"
|
||||
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-arm64"
|
||||
- name_template: "ghcr.io/divyam234/{{ .ProjectName }}:latest"
|
||||
- "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-amd64"
|
||||
- "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-arm64"
|
||||
- name_template: "ghcr.io/tgdrive/{{ .ProjectName }}:latest"
|
||||
image_templates:
|
||||
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-amd64"
|
||||
- "ghcr.io/divyam234/{{ .ProjectName }}:{{ .Tag }}-arm64"
|
||||
- "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-amd64"
|
||||
- "ghcr.io/tgdrive/{{ .ProjectName }}:{{ .Tag }}-arm64"
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
|
|
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ endif
|
|||
APP_NAME := teldrive
|
||||
BUILD_DIR := bin
|
||||
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_COMMIT := $(shell git rev-parse --short HEAD)
|
||||
GIT_LINK := $(shell git remote get-url origin)
|
||||
|
|
10
README.md
10
README.md
|
@ -36,7 +36,7 @@ Telegram Drive is a powerful utility that enables you to organise your telegram
|
|||
|
||||
<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)
|
||||
|
||||
|
@ -47,19 +47,19 @@ Telegram Drive is a powerful utility that enables you to organise your telegram
|
|||
#### Linux
|
||||
|
||||
```bash
|
||||
curl -sSL https://instl.vercel.app/divyam234/teldrive/linux | bash
|
||||
curl -sSL https://instl.vercel.app/tgdrive/teldrive/linux | bash
|
||||
```
|
||||
|
||||
#### Windows
|
||||
|
||||
```powershell
|
||||
iwr https://instl.vercel.app/divyam234/teldrive/windows | iex
|
||||
iwr https://instl.vercel.app/tgdrive/teldrive/windows | iex
|
||||
```
|
||||
|
||||
#### macOS
|
||||
|
||||
```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
|
||||
|
||||
|
@ -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.
|
||||
- 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.
|
||||
- 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.
|
||||
|
||||
### Advanced Configuration
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package api
|
||||
|
||||
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/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"
|
||||
)
|
||||
|
||||
|
|
26
cmd/run.go
26
cmd/run.go
|
@ -11,19 +11,6 @@ import (
|
|||
"time"
|
||||
"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/pprof"
|
||||
ginzap "github.com/gin-contrib/zap"
|
||||
|
@ -33,6 +20,19 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/pflag"
|
||||
"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/zap/zapcore"
|
||||
"gorm.io/gorm"
|
||||
|
|
|
@ -3,8 +3,8 @@ package cmd
|
|||
import (
|
||||
"runtime"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/config"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/tgdrive/teldrive/internal/config"
|
||||
)
|
||||
|
||||
func NewVersion() *cobra.Command {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
teldrive:
|
||||
image: ghcr.io/divyam234/teldrive
|
||||
image: ghcr.io/tgdrive/teldrive
|
||||
restart: always
|
||||
container_name: teldrive
|
||||
networks:
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/divyam234/teldrive
|
||||
module github.com/tgdrive/teldrive
|
||||
|
||||
go 1.22
|
||||
|
||||
|
|
|
@ -5,11 +5,11 @@ import (
|
|||
"strconv"
|
||||
"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/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"
|
||||
)
|
||||
|
||||
|
|
2
internal/cache/cache.go
vendored
2
internal/cache/cache.go
vendored
|
@ -6,8 +6,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/coocood/freecache"
|
||||
"github.com/divyam234/teldrive/internal/config"
|
||||
"github.com/redis/go-redis/v9"
|
||||
"github.com/tgdrive/teldrive/internal/config"
|
||||
"github.com/vmihailenco/msgpack/v5"
|
||||
)
|
||||
|
||||
|
|
2
internal/cache/cache_test.go
vendored
2
internal/cache/cache_test.go
vendored
|
@ -4,8 +4,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/divyam234/teldrive/pkg/schemas"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/tgdrive/teldrive/pkg/schemas"
|
||||
)
|
||||
|
||||
func TestCache(t *testing.T) {
|
||||
|
|
|
@ -3,8 +3,8 @@ package database
|
|||
import (
|
||||
"time"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/config"
|
||||
"github.com/divyam234/teldrive/internal/logging"
|
||||
"github.com/tgdrive/teldrive/internal/config"
|
||||
"github.com/tgdrive/teldrive/internal/logging"
|
||||
|
||||
extraClausePlugin "github.com/WinterYukky/gorm-extra-clause-plugin"
|
||||
"go.uber.org/zap/zapcore"
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/logging"
|
||||
"github.com/tgdrive/teldrive/internal/logging"
|
||||
|
||||
"go.uber.org/zap"
|
||||
"go.uber.org/zap/zapcore"
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/config"
|
||||
"github.com/divyam234/teldrive/internal/utils"
|
||||
"github.com/mitchellh/go-homedir"
|
||||
"github.com/tgdrive/teldrive/internal/config"
|
||||
"github.com/tgdrive/teldrive/internal/utils"
|
||||
"go.etcd.io/bbolt"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/divyam234/cors"
|
||||
"github.com/divyam234/teldrive/internal/auth"
|
||||
"github.com/divyam234/teldrive/internal/cache"
|
||||
"github.com/gin-contrib/secure"
|
||||
"github.com/tgdrive/teldrive/internal/auth"
|
||||
"github.com/tgdrive/teldrive/internal/cache"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"context"
|
||||
"sync"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/logging"
|
||||
"github.com/gotd/td/telegram"
|
||||
"github.com/gotd/td/tg"
|
||||
"github.com/tgdrive/teldrive/internal/logging"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,13 +5,13 @@ import (
|
|||
"fmt"
|
||||
"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/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 {
|
||||
|
|
|
@ -5,12 +5,12 @@ import (
|
|||
"fmt"
|
||||
"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/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 {
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
"io"
|
||||
"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/tgdrive/teldrive/internal/cache"
|
||||
"github.com/tgdrive/teldrive/internal/config"
|
||||
"github.com/tgdrive/teldrive/internal/tgc"
|
||||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
|
||||
|
|
|
@ -7,9 +7,9 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/config"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/tgdrive/teldrive/internal/config"
|
||||
)
|
||||
|
||||
type testChunkSource struct {
|
||||
|
|
|
@ -9,11 +9,11 @@ import (
|
|||
"runtime"
|
||||
"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/tg"
|
||||
"github.com/tgdrive/teldrive/internal/config"
|
||||
"github.com/tgdrive/teldrive/internal/kv"
|
||||
"github.com/tgdrive/teldrive/pkg/types"
|
||||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@ package tgc
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/logging"
|
||||
"github.com/gotd/td/telegram"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/tgdrive/teldrive/internal/logging"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,18 +5,18 @@ import (
|
|||
"time"
|
||||
|
||||
"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/ratelimit"
|
||||
"github.com/gotd/td/session"
|
||||
"github.com/gotd/td/telegram"
|
||||
"github.com/gotd/td/telegram/dcs"
|
||||
"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"
|
||||
"golang.org/x/net/proxy"
|
||||
"golang.org/x/time/rate"
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/config"
|
||||
"github.com/divyam234/teldrive/internal/kv"
|
||||
"github.com/gotd/td/telegram"
|
||||
"github.com/tgdrive/teldrive/internal/config"
|
||||
"github.com/tgdrive/teldrive/internal/kv"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
"os/signal"
|
||||
|
||||
"github.com/divyam234/teldrive/cmd"
|
||||
"github.com/tgdrive/teldrive/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,9 +3,9 @@ package controller
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/divyam234/teldrive/pkg/httputil"
|
||||
"github.com/divyam234/teldrive/pkg/schemas"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/tgdrive/teldrive/pkg/httputil"
|
||||
"github.com/tgdrive/teldrive/pkg/schemas"
|
||||
)
|
||||
|
||||
func (ac *Controller) GetSession(c *gin.Context) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package controller
|
||||
|
||||
import (
|
||||
"github.com/divyam234/teldrive/pkg/services"
|
||||
"github.com/tgdrive/teldrive/pkg/services"
|
||||
)
|
||||
|
||||
type Controller struct {
|
||||
|
|
|
@ -3,10 +3,10 @@ package controller
|
|||
import (
|
||||
"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/tgdrive/teldrive/internal/auth"
|
||||
"github.com/tgdrive/teldrive/pkg/httputil"
|
||||
"github.com/tgdrive/teldrive/pkg/schemas"
|
||||
)
|
||||
|
||||
func (fc *Controller) CreateFile(c *gin.Context) {
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/auth"
|
||||
"github.com/divyam234/teldrive/pkg/httputil"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/tgdrive/teldrive/internal/auth"
|
||||
"github.com/tgdrive/teldrive/pkg/httputil"
|
||||
)
|
||||
|
||||
func (uc *Controller) GetUploadFileById(c *gin.Context) {
|
||||
|
|
|
@ -3,8 +3,8 @@ package controller
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/divyam234/teldrive/pkg/httputil"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/tgdrive/teldrive/pkg/httputil"
|
||||
)
|
||||
|
||||
func (uc *Controller) GetStats(c *gin.Context) {
|
||||
|
|
|
@ -4,13 +4,13 @@ import (
|
|||
"context"
|
||||
"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/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"
|
||||
"gorm.io/datatypes"
|
||||
"gorm.io/gorm"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package httputil
|
||||
|
||||
import (
|
||||
"github.com/divyam234/teldrive/internal/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/tgdrive/teldrive/internal/logging"
|
||||
)
|
||||
|
||||
func NewError(ctx *gin.Context, status int, err error) {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package mapper
|
||||
|
||||
import (
|
||||
"github.com/divyam234/teldrive/pkg/models"
|
||||
"github.com/divyam234/teldrive/pkg/schemas"
|
||||
"github.com/tgdrive/teldrive/pkg/models"
|
||||
"github.com/tgdrive/teldrive/pkg/schemas"
|
||||
)
|
||||
|
||||
func ToFileOut(file models.File) *schemas.FileOut {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"database/sql"
|
||||
"time"
|
||||
|
||||
"github.com/divyam234/teldrive/pkg/schemas"
|
||||
"github.com/tgdrive/teldrive/pkg/schemas"
|
||||
"gorm.io/datatypes"
|
||||
)
|
||||
|
||||
|
|
|
@ -16,13 +16,6 @@ import (
|
|||
"strconv"
|
||||
"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/golang-jwt/jwt/v5"
|
||||
"github.com/gorilla/websocket"
|
||||
|
@ -31,6 +24,13 @@ import (
|
|||
"github.com/gotd/td/telegram/auth/qrlogin"
|
||||
"github.com/gotd/td/tg"
|
||||
"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/clause"
|
||||
)
|
||||
|
|
|
@ -5,15 +5,15 @@ import (
|
|||
"fmt"
|
||||
"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/tg"
|
||||
"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"
|
||||
)
|
||||
|
||||
|
|
|
@ -16,24 +16,24 @@ import (
|
|||
"time"
|
||||
|
||||
"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/gotd/td/telegram"
|
||||
"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"
|
||||
|
||||
"gorm.io/datatypes"
|
||||
|
|
|
@ -3,12 +3,12 @@ package services
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/database"
|
||||
"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/tgdrive/teldrive/pkg/models"
|
||||
"github.com/tgdrive/teldrive/pkg/schemas"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
|
|
@ -13,25 +13,25 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/divyam234/teldrive/internal/auth"
|
||||
"github.com/divyam234/teldrive/internal/cache"
|
||||
"github.com/divyam234/teldrive/internal/crypt"
|
||||
"github.com/divyam234/teldrive/internal/kv"
|
||||
"github.com/divyam234/teldrive/internal/logging"
|
||||
"github.com/divyam234/teldrive/internal/pool"
|
||||
"github.com/divyam234/teldrive/internal/tgc"
|
||||
"github.com/divyam234/teldrive/pkg/mapper"
|
||||
"github.com/divyam234/teldrive/pkg/schemas"
|
||||
"github.com/tgdrive/teldrive/internal/auth"
|
||||
"github.com/tgdrive/teldrive/internal/cache"
|
||||
"github.com/tgdrive/teldrive/internal/crypt"
|
||||
"github.com/tgdrive/teldrive/internal/kv"
|
||||
"github.com/tgdrive/teldrive/internal/logging"
|
||||
"github.com/tgdrive/teldrive/internal/pool"
|
||||
"github.com/tgdrive/teldrive/internal/tgc"
|
||||
"github.com/tgdrive/teldrive/pkg/mapper"
|
||||
"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/gotd/td/telegram"
|
||||
"github.com/gotd/td/telegram/message"
|
||||
"github.com/gotd/td/telegram/uploader"
|
||||
"github.com/gotd/td/tg"
|
||||
"github.com/tgdrive/teldrive/internal/config"
|
||||
"github.com/tgdrive/teldrive/pkg/models"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@ package services
|
|||
import (
|
||||
"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/tgdrive/teldrive/pkg/models"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
|
|
@ -11,19 +11,19 @@ import (
|
|||
"sync"
|
||||
"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/message/peer"
|
||||
"github.com/gotd/td/telegram/query"
|
||||
"github.com/gotd/td/tg"
|
||||
"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"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
|
Loading…
Reference in a new issue