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
537 B

package global
import (
"autocode/config"
"github.com/go-redis/redis"
"github.com/songzhibin97/gkit/cache/local_cache"
"github.com/songzhibin97/gkit/cache/singleflight"
"github.com/spf13/viper"
"go.uber.org/zap"
"gorm.io/gorm"
)
var (
GVA_DB *gorm.DB
GVA_DBList map[string]*gorm.DB
GVA_REDIS *redis.Client
GVA_CONFIG config.Server
GVA_VP *viper.Viper
//GVA_LOG *oplogging.Logger
GVA_LOG *zap.Logger
GVA_Concurrency_Control = &singleflight.Group{}
BlackCache local_cache.Cache
)