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

3 years ago
  1. package global
  2. import (
  3. "autocode/config"
  4. "github.com/go-redis/redis"
  5. "github.com/songzhibin97/gkit/cache/local_cache"
  6. "github.com/songzhibin97/gkit/cache/singleflight"
  7. "github.com/spf13/viper"
  8. "go.uber.org/zap"
  9. "gorm.io/gorm"
  10. )
  11. var (
  12. GVA_DB *gorm.DB
  13. GVA_DBList map[string]*gorm.DB
  14. GVA_REDIS *redis.Client
  15. GVA_CONFIG config.Server
  16. GVA_VP *viper.Viper
  17. //GVA_LOG *oplogging.Logger
  18. GVA_LOG *zap.Logger
  19. GVA_Concurrency_Control = &singleflight.Group{}
  20. BlackCache local_cache.Cache
  21. )