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.

26 lines
508 B

  1. package global
  2. import (
  3. "gin-vue-admin/utils/timer"
  4. "golang.org/x/sync/singleflight"
  5. "go.uber.org/zap"
  6. "gin-vue-admin/config"
  7. "github.com/go-redis/redis/v8"
  8. "github.com/spf13/viper"
  9. "gorm.io/gorm"
  10. )
  11. var (
  12. GVA_DB *gorm.DB
  13. GVA_REDIS *redis.Client
  14. GVA_CONFIG config.Server
  15. GVA_VP *viper.Viper
  16. //GVA_LOG *oplogging.Logger
  17. GVA_LOG *zap.Logger
  18. GVA_Timer timer.Timer = timer.NewTimerTask()
  19. GVA_Concurrency_Control = &singleflight.Group{}
  20. )