global.go 455 B

1234567891011121314151617181920212223
  1. package global
  2. import (
  3. "mtp20access/config"
  4. "github.com/go-redis/redis/v8"
  5. "github.com/songzhibin97/gkit/cache/local_cache"
  6. "github.com/spf13/viper"
  7. "go.uber.org/zap"
  8. "golang.org/x/sync/singleflight"
  9. "xorm.io/xorm"
  10. )
  11. var (
  12. M2A_DB *xorm.Engine
  13. M2A_REDIS *redis.Client
  14. M2A_CONFIG config.Server
  15. M2A_VP *viper.Viper
  16. M2A_LOG *zap.Logger
  17. M2A_Concurrency_Control = &singleflight.Group{}
  18. BlackCache local_cache.Cache
  19. )