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.

29 lines
655 B

3 years ago
3 years ago
  1. package global
  2. import (
  3. "github.com/flipped-aurora/gin-vue-admin/server/utils/timer"
  4. "github.com/songzhibin97/gkit/cache/local_cache"
  5. "golang.org/x/sync/singleflight"
  6. "go.uber.org/zap"
  7. "github.com/flipped-aurora/gin-vue-admin/server/config"
  8. "github.com/go-redis/redis/v8"
  9. "github.com/spf13/viper"
  10. "gorm.io/gorm"
  11. )
  12. var (
  13. GVA_DB *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_Timer timer.Timer = timer.NewTimerTask()
  20. GVA_Concurrency_Control = &singleflight.Group{}
  21. BlackCache local_cache.Cache
  22. )