global.go 751 B

12345678910111213141516171819202122232425262728293031
  1. package global
  2. import (
  3. "github.com/flipped-aurora/gin-vue-admin/server/utils/timer"
  4. "github.com/silenceper/wechat/v2/officialaccount"
  5. "github.com/songzhibin97/gkit/cache/local_cache"
  6. "golang.org/x/sync/singleflight"
  7. "go.uber.org/zap"
  8. "github.com/flipped-aurora/gin-vue-admin/server/config"
  9. "github.com/go-redis/redis/v8"
  10. "github.com/spf13/viper"
  11. "gorm.io/gorm"
  12. )
  13. var (
  14. GVA_DB *gorm.DB
  15. GVA_REDIS *redis.Client
  16. GVA_WECHAT *officialaccount.OfficialAccount
  17. GVA_CONFIG config.Server
  18. GVA_VP *viper.Viper
  19. //GVA_LOG *oplogging.Logger
  20. GVA_LOG *zap.Logger
  21. GVA_Timer timer.Timer = timer.NewTimerTask()
  22. GVA_Concurrency_Control = &singleflight.Group{}
  23. BlackCache local_cache.Cache
  24. )