global.go 655 B

1234567891011121314151617181920212223242526272829
  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. )