global.go 574 B

1234567891011121314151617181920212223242526
  1. package global
  2. import (
  3. "github.com/flipped-aurora/gin-vue-admin/server/utils/timer"
  4. "golang.org/x/sync/singleflight"
  5. "go.uber.org/zap"
  6. "github.com/flipped-aurora/gin-vue-admin/server/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. )