variables.go 440 B

12345678910111213141516
  1. package common
  2. import (
  3. "github.com/aiscrm/redisgo"
  4. "github.com/jinzhu/gorm"
  5. "lzyd-message-api/wrapper"
  6. )
  7. var (
  8. ConfigInfo *configModel // all server config information
  9. ServerInfo *serverModel // server config information
  10. LoggerInfo *logModel // log config information
  11. MQTTClient *wrapper.Client // mqtt client instance
  12. DB *gorm.DB // database contains
  13. Cacher *redisgo.Cacher // redis connection
  14. )