config.go 918 B

12345678910111213141516171819202122232425
  1. package conf
  2. import (
  3. beego "github.com/beego/beego/v2/server/web"
  4. )
  5. // Nats
  6. var NatsServer_Url, _ = beego.AppConfig.String("NatsServer_Url")
  7. var RunMode, _ = beego.AppConfig.String("RunMode")
  8. var Page_size = 10
  9. // Mysql
  10. var MysqlServer_UrlPort, _ = beego.AppConfig.String("MysqlServer_UrlPort")
  11. var MysqlServer_Database, _ = beego.AppConfig.String("MysqlServer_Database")
  12. var MysqlServer_Username, _ = beego.AppConfig.String("MysqlServer_Username")
  13. var MysqlServer_Password, _ = beego.AppConfig.String("MysqlServer_Password")
  14. var MysqlServer_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer_MaxIdleConnections")
  15. var MysqlServer_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer_MaxOpenConnections")
  16. // Redis
  17. var Redis_address, _ = beego.AppConfig.String("Redis_address")
  18. var Redis_password, _ = beego.AppConfig.String("Redis_password")
  19. var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")