123456789101112131415161718192021222324252627282930313233343536373839 |
- package conf
- import (
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- beego.LoadAppConfig("ini", "a/conf/app.conf")
- }
- 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")
- // Mysql
- var MysqlServer_UrlPort, _ = beego.AppConfig.String("MysqlServer_UrlPort")
- var MysqlServer_Database, _ = beego.AppConfig.String("MysqlServer_Database")
- var MysqlServer_Username, _ = beego.AppConfig.String("MysqlServer_Username")
- var MysqlServer_Password, _ = beego.AppConfig.String("MysqlServer_Password")
- var MysqlServer_MaxIdleConnections, _ = beego.AppConfig.Int("MysqlServer_MaxIdleConnections")
- var MysqlServer_MaxOpenConnections, _ = beego.AppConfig.Int("MysqlServer_MaxOpenConnections")
- // Mqtt
- var MqttServer_id, _ = beego.AppConfig.String("MqttServer_id")
- var MqttServer_Url, _ = beego.AppConfig.String("MqttServer_Url")
- var MqttServer_Username, _ = beego.AppConfig.String("MqttServer_Username")
- var MqttServer_Password, _ = beego.AppConfig.String("MqttServer_Password")
- var MqttServer_ClientID, _ = beego.AppConfig.String("MqttServer_ClientID")
- // Nats
- var NatsServer_Url, _ = beego.AppConfig.String("NatsServer_Url")
- var EWarningAdmin = []int{1} // 管理
- var Page_size = 10
|