12345678910111213141516171819 |
- package conf
- import (
- beego "github.com/beego/beego/v2/server/web"
- )
- var HTTPPort, _ = beego.AppConfig.Int("HTTPPort")
- var AppName, _ = beego.AppConfig.String("appname")
- // Redis
- var Redis_address, _ = beego.AppConfig.String("Redis_address")
- var Redis_password, _ = beego.AppConfig.String("Redis_password")
- var Redis_dbNum, _ = beego.AppConfig.String("Redis_dbNum")
- // Mongodb
- var Mongodb_Url, _ = beego.AppConfig.String("Mongodb_Url")
- var Mongodb_DB, _ = beego.AppConfig.String("Mongodb_DB")
- var Mongodb_Username, _ = beego.AppConfig.String("Mongodb_Username")
- var Mongodb_Password, _ = beego.AppConfig.String("Mongodb_Password")
|