global.go 418 B

123456789101112131415161718
  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. "io"
  8. )
  9. var (
  10. CONFIG config.Config //配置文件
  11. LOG *oplogging.Logger
  12. MYSQL map[string]*gorm.DB //数据库连接配置
  13. MYSQL_LOG io.Writer
  14. DEFAULT_MYSQL *gorm.DB //默认数据库连接配置
  15. Redis *redis.Client //redis链接
  16. )