global.go 275 B

123456789101112131415161718
  1. package global
  2. import (
  3. "mtp20access/config"
  4. "github.com/go-redis/redis"
  5. "github.com/spf13/viper"
  6. "go.uber.org/zap"
  7. "xorm.io/xorm"
  8. )
  9. var (
  10. M2A_DB *xorm.Engine
  11. M2A_REDIS *redis.Client
  12. M2A_CONFIG config.Server
  13. M2A_VP *viper.Viper
  14. M2A_LOG *zap.Logger
  15. )