config.go 636 B

12345678910111213141516171819
  1. package conf
  2. import (
  3. beego "github.com/beego/beego/v2/server/web"
  4. )
  5. var HTTPPort, _ = beego.AppConfig.Int("HTTPPort")
  6. var AppName, _ = beego.AppConfig.String("appname")
  7. // Redis
  8. var Redis_address, _ = beego.AppConfig.String("Redis_address")
  9. var Redis_password, _ = beego.AppConfig.String("Redis_password")
  10. var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")
  11. // Mongodb
  12. var Mongodb_Url, _ = beego.AppConfig.String("Mongodb_Url")
  13. var Mongodb_DB, _ = beego.AppConfig.String("Mongodb_DB")
  14. var Mongodb_Username, _ = beego.AppConfig.String("Mongodb_Username")
  15. var Mongodb_Password, _ = beego.AppConfig.String("Mongodb_Password")