config.go 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. package conf
  2. import (
  3. beego "github.com/beego/beego/v2/server/web"
  4. )
  5. func init() {
  6. }
  7. var HTTPPort, _ = beego.AppConfig.Int("HTTPPort")
  8. var AppName, _ = beego.AppConfig.String("appname")
  9. // 数据解析加载目录
  10. var Analysis_Dir, _ = beego.AppConfig.String("Analysis_Dir")
  11. // Mysql
  12. var MysqlServer_UrlPort, _ = beego.AppConfig.String("MysqlServer_UrlPort")
  13. var MysqlServer_Database, _ = beego.AppConfig.String("MysqlServer_Database")
  14. var MysqlServer_Username, _ = beego.AppConfig.String("MysqlServer_Username")
  15. var MysqlServer_Password, _ = beego.AppConfig.String("MysqlServer_Password")
  16. var MysqlServer_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer_MaxIdleConnections")
  17. var MysqlServer_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer_MaxOpenConnections")
  18. // Qiniu
  19. var Qiniu_AccessKey, _ = beego.AppConfig.String("Qiniu_AccessKey")
  20. var Qiniu_SecretKey, _ = beego.AppConfig.String("Qiniu_SecretKey")
  21. var Qiniu_BUCKET, _ = beego.AppConfig.String("Qiniu_BUCKET")
  22. var Qiniu_Dir, _ = beego.AppConfig.String("Qiniu_Dir")
  23. var Qiniu_Url, _ = beego.AppConfig.String("Qiniu_Url")