You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
382 B
23 lines
382 B
5 months ago
|
package global
|
||
|
|
||
|
import (
|
||
|
"pure/config"
|
||
|
"pure/utils/timer"
|
||
|
|
||
|
"github.com/go-redis/redis"
|
||
|
"github.com/minio/minio-go/v7"
|
||
|
"github.com/spf13/viper"
|
||
|
"go.uber.org/zap"
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
MG_DB *gorm.DB
|
||
|
MG_REDIS *redis.Client
|
||
|
MG_CONFIG config.Server
|
||
|
MG_VP *viper.Viper
|
||
|
MG_LOG *zap.Logger
|
||
|
MG_MINIO *minio.Client
|
||
|
MG_Timer timer.Timer = timer.NewTimerTask()
|
||
|
)
|