This commit is contained in:
coward
2024-07-05 14:41:35 +08:00
commit 1f7f57ec9f
70 changed files with 4923 additions and 0 deletions

17
global/client/client.go Normal file
View File

@@ -0,0 +1,17 @@
package client
import (
"github.com/cowardmrx/go_aliyun_oss"
"github.com/go-resty/resty/v2"
"github.com/redis/go-redis/v9"
"golang.zx2c4.com/wireguard/wgctrl"
"gorm.io/gorm"
)
var (
WireguardClient *wgctrl.Client // wireguard客户端
DB *gorm.DB // 数据库客户端
Redis *redis.Client // redis客户端
HttpClient *resty.Client // http客户端
OSS *go_aliyun_oss.AliOssClient // oss客户端
)