diff --git a/cmd/root.go b/cmd/root.go index 255b2fbc..326fbc2b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -15,7 +15,7 @@ var RootCmd = &cobra.Command{ Use: "openlist", Short: "A file list program that supports multiple storage.", Long: `A file list program that supports multiple storage, -built with love by Xhofe and friends in Go/Solid.js. +built with love by OpenListTeam. Complete documentation is available at https://docs.openlist.team/`, } diff --git a/drivers/115_open/driver.go b/drivers/115_open/driver.go index dda45b37..d402e849 100644 --- a/drivers/115_open/driver.go +++ b/drivers/115_open/driver.go @@ -16,7 +16,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/stream" "github.com/OpenListTeam/OpenList/pkg/http_range" "github.com/OpenListTeam/OpenList/pkg/utils" - sdk "github.com/xhofe/115-sdk-go" + sdk "github.com/OpenListTeam/115-sdk-go" "golang.org/x/time/rate" ) diff --git a/drivers/115_open/types.go b/drivers/115_open/types.go index 23f63967..9e7ef2ee 100644 --- a/drivers/115_open/types.go +++ b/drivers/115_open/types.go @@ -5,7 +5,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/model" "github.com/OpenListTeam/OpenList/pkg/utils" - sdk "github.com/xhofe/115-sdk-go" + sdk "github.com/OpenListTeam/115-sdk-go" ) type Obj sdk.GetFilesResp_File diff --git a/drivers/115_open/upload.go b/drivers/115_open/upload.go index bd1c1008..9d212e3f 100644 --- a/drivers/115_open/upload.go +++ b/drivers/115_open/upload.go @@ -11,7 +11,7 @@ import ( "github.com/OpenListTeam/OpenList/pkg/utils" "github.com/aliyun/aliyun-oss-go-sdk/oss" "github.com/avast/retry-go" - sdk "github.com/xhofe/115-sdk-go" + sdk "github.com/OpenListTeam/115-sdk-go" ) func calPartSize(fileSize int64) int64 { diff --git a/drivers/aliyundrive_open/driver.go b/drivers/aliyundrive_open/driver.go index bb8fd7be..0b206f52 100644 --- a/drivers/aliyundrive_open/driver.go +++ b/drivers/aliyundrive_open/driver.go @@ -13,7 +13,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/errs" "github.com/OpenListTeam/OpenList/internal/model" "github.com/OpenListTeam/OpenList/pkg/utils" - "github.com/Xhofe/rateg" + "github.com/OpenListTeam/rateg" "github.com/go-resty/resty/v2" log "github.com/sirupsen/logrus" ) diff --git a/drivers/aliyundrive_share/driver.go b/drivers/aliyundrive_share/driver.go index 3923fa17..fae5f9a6 100644 --- a/drivers/aliyundrive_share/driver.go +++ b/drivers/aliyundrive_share/driver.go @@ -12,7 +12,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/model" "github.com/OpenListTeam/OpenList/pkg/cron" "github.com/OpenListTeam/OpenList/pkg/utils" - "github.com/Xhofe/rateg" + "github.com/OpenListTeam/rateg" "github.com/go-resty/resty/v2" log "github.com/sirupsen/logrus" ) diff --git a/drivers/base/upload.go b/drivers/base/upload.go index 7bc0de13..b62e313e 100644 --- a/drivers/base/upload.go +++ b/drivers/base/upload.go @@ -6,7 +6,7 @@ import ( "time" "github.com/OpenListTeam/OpenList/internal/driver" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" ) // storage upload progress, for upload recovery diff --git a/drivers/wopan/driver.go b/drivers/wopan/driver.go index 9eda8f6e..212ddaf9 100644 --- a/drivers/wopan/driver.go +++ b/drivers/wopan/driver.go @@ -10,7 +10,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/op" "github.com/OpenListTeam/OpenList/pkg/utils" "github.com/go-resty/resty/v2" - "github.com/xhofe/wopan-sdk-go" + "github.com/OpenListTeam/wopan-sdk-go" ) type Wopan struct { diff --git a/drivers/wopan/types.go b/drivers/wopan/types.go index 93ff8eab..bedb8b15 100644 --- a/drivers/wopan/types.go +++ b/drivers/wopan/types.go @@ -2,7 +2,7 @@ package template import ( "github.com/OpenListTeam/OpenList/internal/model" - "github.com/xhofe/wopan-sdk-go" + "github.com/OpenListTeam/wopan-sdk-go" ) type Object struct { diff --git a/drivers/wopan/util.go b/drivers/wopan/util.go index b825d6ea..6b8918b0 100644 --- a/drivers/wopan/util.go +++ b/drivers/wopan/util.go @@ -3,7 +3,7 @@ package template import ( "time" - "github.com/xhofe/wopan-sdk-go" + "github.com/OpenListTeam/wopan-sdk-go" ) // do others that not defined in Driver interface diff --git a/go.mod b/go.mod index f381203c..163fb108 100644 --- a/go.mod +++ b/go.mod @@ -5,12 +5,14 @@ go 1.23.4 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.0 + github.com/OpenListTeam/go-cache v0.1.0 + github.com/OpenListTeam/rateg v0.1.0 github.com/OpenListTeam/sftpd-openlist v1.0.1 + github.com/OpenListTeam/tache v0.2.0 github.com/OpenListTeam/times v0.1.0 + github.com/OpenListTeam/wopan-sdk-go v0.1.5 github.com/ProtonMail/go-crypto v1.0.0 github.com/SheltonZhu/115driver v1.0.34 - github.com/Xhofe/go-cache v0.0.0-20240804043513-b1a71927bc21 - github.com/Xhofe/rateg v0.0.0-20230728072201-251a4e1adad4 github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible github.com/avast/retry-go v3.0.0+incompatible github.com/aws/aws-sdk-go v1.55.5 @@ -61,8 +63,6 @@ require ( github.com/u2takey/ffmpeg-go v0.5.0 github.com/upyun/go-sdk/v3 v3.0.4 github.com/winfsp/cgofuse v1.5.1-0.20230130140708-f87f5db493b5 - github.com/xhofe/tache v0.1.5 - github.com/xhofe/wopan-sdk-go v0.1.3 github.com/yeka/zip v0.0.0-20231116150916-03d6312748a9 github.com/zzzhr1990/go-common-entity v0.0.0-20250202070650-1a200048f0d3 golang.org/x/crypto v0.36.0 @@ -87,6 +87,7 @@ require ( ) require ( + github.com/OpenListTeam/115-sdk-go v0.2.0 github.com/STARRY-S/zip v0.2.1 // indirect github.com/aymerick/douceur v0.2.0 // indirect github.com/blevesearch/go-faiss v1.0.20 // indirect @@ -117,7 +118,6 @@ require ( github.com/taruti/bytepool v0.0.0-20160310082835-5e3a9ea56543 // indirect github.com/therootcompany/xz v1.0.1 // indirect github.com/ulikunitz/xz v0.5.12 // indirect - github.com/xhofe/115-sdk-go v0.1.5 github.com/yuin/goldmark v1.7.8 go4.org v0.0.0-20230225012048-214862532bf5 resty.dev/v3 v3.0.0-beta.2 // indirect @@ -125,6 +125,7 @@ require ( require ( github.com/Max-Sum/base32768 v0.0.0-20230304063302-18e6ce5945fd // indirect + github.com/OpenListTeam/gsync v0.1.0 // indirect github.com/RoaringBitmap/roaring v1.9.3 // indirect github.com/abbot/go-http-auth v0.4.0 // indirect github.com/aead/ecdh v0.2.0 // indirect @@ -248,7 +249,6 @@ require ( github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasthttp v1.37.1-0.20220607072126-8a320890c08d // indirect github.com/x448/float16 v0.8.4 // indirect - github.com/xhofe/gsync v0.0.0-20230917091818-2111ceb38a25 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.etcd.io/bbolt v1.3.8 // indirect golang.org/x/arch v0.8.0 // indirect @@ -268,4 +268,4 @@ require ( lukechampine.com/blake3 v1.1.7 // indirect ) -// replace github.com/xhofe/115-sdk-go => ../../xhofe/115-sdk-go +// replace github.com/OpenListTeam/115-sdk-go => ../../OpenListTeam/115-sdk-go diff --git a/go.sum b/go.sum index 75992432..efb6eaf2 100644 --- a/go.sum +++ b/go.sum @@ -34,10 +34,22 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/Max-Sum/base32768 v0.0.0-20230304063302-18e6ce5945fd h1:nzE1YQBdx1bq9IlZinHa+HVffy+NmVRoKr+wHN8fpLE= github.com/Max-Sum/base32768 v0.0.0-20230304063302-18e6ce5945fd/go.mod h1:C8yoIfvESpM3GD07OCHU7fqI7lhwyZ2Td1rbNbTAhnc= +github.com/OpenListTeam/115-sdk-go v0.2.0 h1:qNEYpGQg++INLFXYzVW94uGFzCKAIoJJx19DBrsDvlU= +github.com/OpenListTeam/115-sdk-go v0.2.0/go.mod h1:cfvitk2lwe6036iNi2h+iNxwxWDifKZsSvNtrur5BqU= +github.com/OpenListTeam/go-cache v0.1.0 h1:eV2+FCP+rt+E4OCJqLUW7wGccWZNJMV0NNkh+uChbAI= +github.com/OpenListTeam/go-cache v0.1.0/go.mod h1:AHWjKhNK3LE4rorVdKyEALDHoeMnP8SjiNyfVlB+Pz4= +github.com/OpenListTeam/gsync v0.1.0 h1:ywzGybOvA3lW8K1BUjKZ2IUlT2FSlzPO4DOazfYXjcs= +github.com/OpenListTeam/gsync v0.1.0/go.mod h1:h/Rvv9aX/6CdW/7B8di3xK3xNV8dUg45Fehrd/ksZ9s= +github.com/OpenListTeam/rateg v0.1.0 h1:AvYuUjwfBcE+aMSPyJ2MduNIKSoX6f/IVFBwRolMnzE= +github.com/OpenListTeam/rateg v0.1.0/go.mod h1:JbrgJJlwEjVMV/0qHK0QUhdFNQMz4TvJf8aZNT43bkY= github.com/OpenListTeam/sftpd-openlist v1.0.1 h1:j4S3iPFOpnXCUKRPS7uCT4mF2VCl34GyqvH6lqwnkUU= github.com/OpenListTeam/sftpd-openlist v1.0.1/go.mod h1:uO/wKnbvbdq3rBLmClMTZXuCnw7XW4wlAq4dZe91a40= +github.com/OpenListTeam/tache v0.2.0 h1:Q4MjuyECn0CZCf1ZF91JaVaZTaps1mOTAm8bFj8sr9Q= +github.com/OpenListTeam/tache v0.2.0/go.mod h1:qmnZ/VpY2DUlmjg3UoDeNFy/LRqrw0biN3hYEEGc/+A= github.com/OpenListTeam/times v0.1.0 h1:qknxw+qj5CYKgXAwydA102UEpPcpU8TYNGRmwRyPYpg= github.com/OpenListTeam/times v0.1.0/go.mod h1:Jx7qen5NCYzKk2w14YuvU48YYMcPa1P9a+EJePC15Pc= +github.com/OpenListTeam/wopan-sdk-go v0.1.5 h1:iKKcVzIqBgtGDbn0QbdWrCazSGxXFmYFyrnFBG+U8dI= +github.com/OpenListTeam/wopan-sdk-go v0.1.5/go.mod h1:otynv0CgSNUClPpUgZ44qCZGcMRe0dc83Pkk65xAunI= github.com/ProtonMail/go-crypto v1.0.0 h1:LRuvITjQWX+WIfr930YHG2HNfjR1uOfyf5vE0kC2U78= github.com/ProtonMail/go-crypto v1.0.0/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/RoaringBitmap/roaring v1.9.3 h1:t4EbC5qQwnisr5PrP9nt0IRhRTb9gMUgQF4t4S2OByM= @@ -48,10 +60,6 @@ github.com/SheltonZhu/115driver v1.0.34 h1:zhMLp4vgq7GksqvSxQQDOVfK6EOHldQl4b2n8 github.com/SheltonZhu/115driver v1.0.34/go.mod h1:rKvNd4Y4OkXv1TMbr/SKjGdcvMQxh6AW5Tw9w0CJb7E= github.com/Unknwon/goconfig v1.0.0 h1:9IAu/BYbSLQi8puFjUQApZTxIHqSwrj5d8vpP8vTq4A= github.com/Unknwon/goconfig v1.0.0/go.mod h1:wngxua9XCNjvHjDiTiV26DaKDT+0c63QR6H5hjVUUxw= -github.com/Xhofe/go-cache v0.0.0-20240804043513-b1a71927bc21 h1:h6q5E9aMBhhdqouW81LozVPI1I+Pu6IxL2EKpfm5OjY= -github.com/Xhofe/go-cache v0.0.0-20240804043513-b1a71927bc21/go.mod h1:sSBbaOg90XwWKtpT56kVujF0bIeVITnPlssLclogS04= -github.com/Xhofe/rateg v0.0.0-20230728072201-251a4e1adad4 h1:WnvifFgYyogPz2ZFvaVLk4gI/Co0paF92FmxSR6U1zY= -github.com/Xhofe/rateg v0.0.0-20230728072201-251a4e1adad4/go.mod h1:8pWlL2rpusvx7Xa6yYaIWOJ8bR3gPdFBUT7OystyGOY= github.com/abbot/go-http-auth v0.4.0 h1:QjmvZ5gSC7jm3Zg54DqWE/T5m1t2AfDu6QlXJT0EVT0= github.com/abbot/go-http-auth v0.4.0/go.mod h1:Cz6ARTIzApMJDzh5bRMSUou6UMSp0IEXg9km/ci7TJM= github.com/aead/ecdh v0.2.0 h1:pYop54xVaq/CEREFEcukHRZfTdjiWvYIsZDXXrBapQQ= @@ -223,8 +231,6 @@ github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.m github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4= github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM= -github.com/fclairamb/ftpserverlib v0.26.1-0.20250611192536-99cb646d0bbe h1:7hWzlndXJKF95RsWQ80bZmdPiBhoTIzedrp/VDGons8= -github.com/fclairamb/ftpserverlib v0.26.1-0.20250611192536-99cb646d0bbe/go.mod h1:xaDvN9bHSdKbmM1oXkqpyyYM39S89uR2blbq571Zb00= github.com/fclairamb/ftpserverlib v0.26.1-0.20250615212502-7accbe1c7aad h1:nX84X0BDMl4qHx03uSdaVN/9mpHMc7f2jODjPLgDkAA= github.com/fclairamb/ftpserverlib v0.26.1-0.20250615212502-7accbe1c7aad/go.mod h1:xaDvN9bHSdKbmM1oXkqpyyYM39S89uR2blbq571Zb00= github.com/fclairamb/go-log v0.6.0 h1:1V7BJ75P2PvanLHRyGBBFjncB6d4AgEmu+BPWKbMkaU= @@ -608,8 +614,6 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/t3rm1n4l/go-mega v0.0.0-20240219080617-d494b6a8ace7 h1:Jtcrb09q0AVWe3BGe8qtuuGxNSHWGkTWr43kHTJ+CpA= -github.com/t3rm1n4l/go-mega v0.0.0-20240219080617-d494b6a8ace7/go.mod h1:suDIky6yrK07NnaBadCB4sS0CqFOvUK91lH7CR+JlDA= github.com/t3rm1n4l/go-mega v0.0.0-20241213151442-a19cff0ec7b5 h1:Sa+sR8aaAMFwxhXWENEnE6ZpqhZ9d7u1RT2722Rw6hc= github.com/t3rm1n4l/go-mega v0.0.0-20241213151442-a19cff0ec7b5/go.mod h1:UdZiFUFu6e2WjjtjxivwXWcwc1N/8zgbkBR9QNucUOY= github.com/taruti/bytepool v0.0.0-20160310082835-5e3a9ea56543 h1:6Y51mutOvRGRx6KqyMNo//xk8B8o6zW9/RVmy1VamOs= @@ -644,14 +648,6 @@ github.com/winfsp/cgofuse v1.5.1-0.20230130140708-f87f5db493b5 h1:jxZvjx8Ve5sOXo github.com/winfsp/cgofuse v1.5.1-0.20230130140708-f87f5db493b5/go.mod h1:uxjoF2jEYT3+x+vC2KJddEGdk/LU8pRowXmyVMHSV5I= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= -github.com/xhofe/115-sdk-go v0.1.5 h1:2+E92l6AX0+ABAkrdmDa9PE5ONN7wVLCaKkK80zETOg= -github.com/xhofe/115-sdk-go v0.1.5/go.mod h1:MIdpe/4Kw4ODrPld7E11bANc4JsCuXcm5ZZBHSiOI0U= -github.com/xhofe/gsync v0.0.0-20230917091818-2111ceb38a25 h1:eDfebW/yfq9DtG9RO3KP7BT2dot2CvJGIvrB0NEoDXI= -github.com/xhofe/gsync v0.0.0-20230917091818-2111ceb38a25/go.mod h1:fH4oNm5F9NfI5dLi0oIMtsLNKQOirUDbEMCIBb/7SU0= -github.com/xhofe/tache v0.1.5 h1:ezDcgim7tj7KNMXliQsmf8BJQbaZtitfyQA9Nt+B4WM= -github.com/xhofe/tache v0.1.5/go.mod h1:PYt6I/XUKliSg1uHlgsk6ha+le/f6PAvjUtFZAVl3a8= -github.com/xhofe/wopan-sdk-go v0.1.3 h1:J58X6v+n25ewBZjb05pKOr7AWGohb+Rdll4CThGh6+A= -github.com/xhofe/wopan-sdk-go v0.1.3/go.mod h1:dcY9yA28fnaoZPnXZiVTFSkcd7GnIPTpTIIlfSI5z5Q= github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU= github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E= github.com/yeka/zip v0.0.0-20231116150916-03d6312748a9 h1:K8gF0eekWPEX+57l30ixxzGhHH/qscI3JCnuhbN6V4M= @@ -661,8 +657,6 @@ github.com/yuin/goldmark v1.7.8 h1:iERMLn0/QJeHFhxSt3p6PeN9mGnvIKSpG9YYorDMnic= github.com/yuin/goldmark v1.7.8/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -github.com/zzzhr1990/go-common-entity v0.0.0-20221216044934-fd1c571e3a22 h1:X+lHsNTlbatQ1cErXIbtyrh+3MTWxqQFS+sBP/wpFXo= -github.com/zzzhr1990/go-common-entity v0.0.0-20221216044934-fd1c571e3a22/go.mod h1:1zGRDJd8zlG6P8azG96+uywfh6udYWwhOmUivw+xsuM= github.com/zzzhr1990/go-common-entity v0.0.0-20250202070650-1a200048f0d3 h1:PSRwrE5QBufPnOjdgIkRs5KBV1Avq3SY8oksj2Z+k3o= github.com/zzzhr1990/go-common-entity v0.0.0-20250202070650-1a200048f0d3/go.mod h1:CKriYB8bkNgSbYUQF1khSpejKb5IsV6cR7MdaAR7Fc0= go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= diff --git a/internal/bootstrap/data/setting.go b/internal/bootstrap/data/setting.go index 2f529e6d..7a0b2bcd 100644 --- a/internal/bootstrap/data/setting.go +++ b/internal/bootstrap/data/setting.go @@ -155,7 +155,7 @@ func InitialSettings() []model.SettingItem { ([[:xdigit:]]{1,4}(?::[[:xdigit:]]{1,4}){7}|::|:(?::[[:xdigit:]]{1,4}){1,6}|[[:xdigit:]]{1,4}:(?::[[:xdigit:]]{1,4}){1,5}|(?:[[:xdigit:]]{1,4}:){2}(?::[[:xdigit:]]{1,4}){1,4}|(?:[[:xdigit:]]{1,4}:){3}(?::[[:xdigit:]]{1,4}){1,3}|(?:[[:xdigit:]]{1,4}:){4}(?::[[:xdigit:]]{1,4}){1,2}|(?:[[:xdigit:]]{1,4}:){5}:[[:xdigit:]]{1,4}|(?:[[:xdigit:]]{1,4}:){1,6}:) (?U)access_token=(.*)&`, Type: conf.TypeText, Group: model.GLOBAL, Flag: model.PRIVATE}, - {Key: conf.OcrApi, Value: "https://api.example.com/ocr/file/json", Type: conf.TypeString, Group: model.GLOBAL}, // TODO: This can be replace by a community-hosted endpoint, see https://github.com/xhofe/ocr_api_server + {Key: conf.OcrApi, Value: "https://api.example.com/ocr/file/json", Type: conf.TypeString, Group: model.GLOBAL}, // TODO: This can be replace by a community-hosted endpoint, see https://github.com/OpenListTeam/ocr_api_server {Key: conf.FilenameCharMapping, Value: `{"/": "|"}`, Type: conf.TypeText, Group: model.GLOBAL}, {Key: conf.ForwardDirectLinkParams, Value: "false", Type: conf.TypeBool, Group: model.GLOBAL}, {Key: conf.IgnoreDirectLinkParams, Value: "sign,openlist_ts", Type: conf.TypeString, Group: model.GLOBAL}, diff --git a/internal/bootstrap/task.go b/internal/bootstrap/task.go index 34b56923..d52a11d9 100644 --- a/internal/bootstrap/task.go +++ b/internal/bootstrap/task.go @@ -7,7 +7,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/offline_download/tool" "github.com/OpenListTeam/OpenList/internal/op" "github.com/OpenListTeam/OpenList/internal/setting" - "github.com/xhofe/tache" + "github.com/OpenListTeam/tache" ) func taskFilterNegative(num int) int64 { diff --git a/internal/fs/archive.go b/internal/fs/archive.go index 18b1f1c0..06533b9b 100644 --- a/internal/fs/archive.go +++ b/internal/fs/archive.go @@ -24,7 +24,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/task" "github.com/pkg/errors" log "github.com/sirupsen/logrus" - "github.com/xhofe/tache" + "github.com/OpenListTeam/tache" ) type ArchiveDownloadTask struct { diff --git a/internal/fs/copy.go b/internal/fs/copy.go index b1e07797..7e3676a1 100644 --- a/internal/fs/copy.go +++ b/internal/fs/copy.go @@ -17,7 +17,7 @@ import ( "github.com/OpenListTeam/OpenList/pkg/utils" "github.com/OpenListTeam/OpenList/server/common" "github.com/pkg/errors" - "github.com/xhofe/tache" + "github.com/OpenListTeam/tache" ) type CopyTask struct { diff --git a/internal/fs/move.go b/internal/fs/move.go index bd06ab0a..fe662e2d 100644 --- a/internal/fs/move.go +++ b/internal/fs/move.go @@ -17,7 +17,7 @@ import ( "github.com/OpenListTeam/OpenList/pkg/utils" "github.com/OpenListTeam/OpenList/server/common" "github.com/pkg/errors" - "github.com/xhofe/tache" + "github.com/OpenListTeam/tache" ) type MoveTask struct { diff --git a/internal/fs/put.go b/internal/fs/put.go index 8ef37617..b081c237 100644 --- a/internal/fs/put.go +++ b/internal/fs/put.go @@ -11,7 +11,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/op" "github.com/OpenListTeam/OpenList/internal/task" "github.com/pkg/errors" - "github.com/xhofe/tache" + "github.com/OpenListTeam/tache" ) type UploadTask struct { diff --git a/internal/offline_download/pikpak/util.go b/internal/offline_download/pikpak/util.go index 4dc04ad2..de0b2f23 100644 --- a/internal/offline_download/pikpak/util.go +++ b/internal/offline_download/pikpak/util.go @@ -7,7 +7,7 @@ import ( "github.com/OpenListTeam/OpenList/drivers/pikpak" "github.com/OpenListTeam/OpenList/internal/op" "github.com/OpenListTeam/OpenList/pkg/singleflight" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" ) var taskCache = cache.NewMemCache(cache.WithShards[[]pikpak.OfflineTask](16)) diff --git a/internal/offline_download/thunder/util.go b/internal/offline_download/thunder/util.go index fb51af06..5db193b2 100644 --- a/internal/offline_download/thunder/util.go +++ b/internal/offline_download/thunder/util.go @@ -7,7 +7,7 @@ import ( "github.com/OpenListTeam/OpenList/drivers/thunder" "github.com/OpenListTeam/OpenList/internal/op" "github.com/OpenListTeam/OpenList/pkg/singleflight" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" ) var taskCache = cache.NewMemCache(cache.WithShards[[]thunder.OfflineTask](16)) diff --git a/internal/offline_download/thunder_browser/util.go b/internal/offline_download/thunder_browser/util.go index fbc3d4b5..63e7d584 100644 --- a/internal/offline_download/thunder_browser/util.go +++ b/internal/offline_download/thunder_browser/util.go @@ -7,7 +7,7 @@ import ( "github.com/OpenListTeam/OpenList/drivers/thunder_browser" "github.com/OpenListTeam/OpenList/internal/op" "github.com/OpenListTeam/OpenList/pkg/singleflight" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" ) var taskCache = cache.NewMemCache(cache.WithShards[[]thunder_browser.OfflineTask](16)) diff --git a/internal/offline_download/tool/download.go b/internal/offline_download/tool/download.go index bee0c5ca..c9185465 100644 --- a/internal/offline_download/tool/download.go +++ b/internal/offline_download/tool/download.go @@ -10,7 +10,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/task" "github.com/pkg/errors" log "github.com/sirupsen/logrus" - "github.com/xhofe/tache" + "github.com/OpenListTeam/tache" ) type DownloadTask struct { diff --git a/internal/offline_download/tool/transfer.go b/internal/offline_download/tool/transfer.go index 3f389953..1b62d38d 100644 --- a/internal/offline_download/tool/transfer.go +++ b/internal/offline_download/tool/transfer.go @@ -17,7 +17,7 @@ import ( "github.com/OpenListTeam/OpenList/pkg/utils" "github.com/pkg/errors" log "github.com/sirupsen/logrus" - "github.com/xhofe/tache" + "github.com/OpenListTeam/tache" ) type TransferTask struct { diff --git a/internal/op/archive.go b/internal/op/archive.go index f439bca4..c903836c 100644 --- a/internal/op/archive.go +++ b/internal/op/archive.go @@ -17,7 +17,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/model" "github.com/OpenListTeam/OpenList/pkg/singleflight" "github.com/OpenListTeam/OpenList/pkg/utils" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" "github.com/pkg/errors" log "github.com/sirupsen/logrus" ) diff --git a/internal/op/fs.go b/internal/op/fs.go index d566f9d2..af725650 100644 --- a/internal/op/fs.go +++ b/internal/op/fs.go @@ -13,7 +13,7 @@ import ( "github.com/OpenListTeam/OpenList/pkg/generic_sync" "github.com/OpenListTeam/OpenList/pkg/singleflight" "github.com/OpenListTeam/OpenList/pkg/utils" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" "github.com/pkg/errors" log "github.com/sirupsen/logrus" ) diff --git a/internal/op/meta.go b/internal/op/meta.go index 63a73cde..fe9116cd 100644 --- a/internal/op/meta.go +++ b/internal/op/meta.go @@ -9,7 +9,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/model" "github.com/OpenListTeam/OpenList/pkg/singleflight" "github.com/OpenListTeam/OpenList/pkg/utils" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" "github.com/pkg/errors" "gorm.io/gorm" ) diff --git a/internal/op/setting.go b/internal/op/setting.go index be02e2ea..4a58a938 100644 --- a/internal/op/setting.go +++ b/internal/op/setting.go @@ -10,7 +10,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/model" "github.com/OpenListTeam/OpenList/pkg/singleflight" "github.com/OpenListTeam/OpenList/pkg/utils" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" "github.com/pkg/errors" ) diff --git a/internal/op/user.go b/internal/op/user.go index d1f5af81..2fe9f0b7 100644 --- a/internal/op/user.go +++ b/internal/op/user.go @@ -8,7 +8,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/model" "github.com/OpenListTeam/OpenList/pkg/singleflight" "github.com/OpenListTeam/OpenList/pkg/utils" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" ) var userCache = cache.NewMemCache(cache.WithShards[*model.User](2)) diff --git a/internal/task/base.go b/internal/task/base.go index 5e09be2b..45495158 100644 --- a/internal/task/base.go +++ b/internal/task/base.go @@ -6,7 +6,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/conf" "github.com/OpenListTeam/OpenList/internal/model" - "github.com/xhofe/tache" + "github.com/OpenListTeam/tache" ) type TaskExtension struct { diff --git a/internal/task/manager.go b/internal/task/manager.go index 09867b98..3daf440c 100644 --- a/internal/task/manager.go +++ b/internal/task/manager.go @@ -1,7 +1,7 @@ package task import ( - "github.com/xhofe/tache" + "github.com/OpenListTeam/tache" ) type Manager[T tache.Task] interface { diff --git a/server/common/auth.go b/server/common/auth.go index 3ff561fb..beaab390 100644 --- a/server/common/auth.go +++ b/server/common/auth.go @@ -5,7 +5,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/conf" "github.com/OpenListTeam/OpenList/internal/model" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" "github.com/golang-jwt/jwt/v4" "github.com/pkg/errors" ) diff --git a/server/handles/auth.go b/server/handles/auth.go index a16b024c..b61ad902 100644 --- a/server/handles/auth.go +++ b/server/handles/auth.go @@ -9,7 +9,7 @@ import ( "github.com/OpenListTeam/OpenList/internal/model" "github.com/OpenListTeam/OpenList/internal/op" "github.com/OpenListTeam/OpenList/server/common" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" "github.com/gin-gonic/gin" "github.com/pquerna/otp/totp" ) diff --git a/server/handles/ssologin.go b/server/handles/ssologin.go index f585719b..3ea5be8e 100644 --- a/server/handles/ssologin.go +++ b/server/handles/ssologin.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/Xhofe/go-cache" + "github.com/OpenListTeam/go-cache" "github.com/OpenListTeam/OpenList/internal/conf" "github.com/OpenListTeam/OpenList/internal/db" diff --git a/server/handles/task.go b/server/handles/task.go index dc538143..99b0d541 100644 --- a/server/handles/task.go +++ b/server/handles/task.go @@ -12,7 +12,7 @@ import ( "github.com/OpenListTeam/OpenList/pkg/utils" "github.com/OpenListTeam/OpenList/server/common" "github.com/gin-gonic/gin" - "github.com/xhofe/tache" + "github.com/OpenListTeam/tache" ) type TaskInfo struct {