global.go 399 B

12345678910111213141516
  1. package global
  2. import (
  3. "github.com/go-redis/redis/v8"
  4. oplogging "github.com/op/go-logging"
  5. "gorm.io/gorm"
  6. "hongze/hongze_yb/config"
  7. )
  8. var (
  9. CONFIG config.Config //配置文件
  10. LOG *oplogging.Logger
  11. MYSQL map[string]*gorm.DB //数据库连接配置
  12. DEFAULT_MYSQL *gorm.DB //默认数据库连接配置
  13. Redis *redis.Client //redis链接
  14. )