|
@@ -18,10 +18,7 @@ var (
|
|
|
MYSQL_URL_MASTER string
|
|
|
MgoUrlData string // mongodb数据库连接配置
|
|
|
|
|
|
- PYTHON_MYSQL_HOST string // python数据库链接主机地址
|
|
|
- PYTHON_MYSQL_USER string // python数据库链接账号
|
|
|
- PYTHON_MYSQL_PASSWD string // python数据库链接密码
|
|
|
- PYTHON_MYSQL_DB string // python数据库链接数据库名
|
|
|
+ PYTHON_DM_CONNECT_PARAM string // python链接达梦数据库的参数
|
|
|
PYTHON_MONGO_HOST string // python链接mongo主机地址
|
|
|
PYTHON_MONGO_DATABASE string // python链接mongo的库名
|
|
|
PYTHON_MONGO_AUTH_MECHANISM string // python认证机制
|
|
@@ -150,17 +147,13 @@ func init() {
|
|
|
MgoUrlData = config["mgo_url_data"]
|
|
|
|
|
|
//python链接
|
|
|
- PYTHON_MYSQL_HOST = config["python_mysql_host"]
|
|
|
- PYTHON_MYSQL_USER = config["python_mysql_user"]
|
|
|
- PYTHON_MYSQL_PASSWD = config["python_mysql_passwd"]
|
|
|
- PYTHON_MYSQL_DB = config["python_mysql_db"]
|
|
|
+ PYTHON_DM_CONNECT_PARAM = config["python_dm_connect_param"] // python链接达梦数据库的参数
|
|
|
+ PYTHON_PATH = config["python_path"]
|
|
|
|
|
|
PYTHON_MONGO_HOST = config["python_mongo_host"] // python链接mongo主机地址
|
|
|
PYTHON_MONGO_DATABASE = config["python_mongo_db"] // python链接mongo的库名
|
|
|
PYTHON_MONGO_AUTH_MECHANISM = config["python_mongo_auth_mechanism"] // python链接认证机制
|
|
|
|
|
|
- PYTHON_PATH = config["python_path"]
|
|
|
-
|
|
|
REDIS_CACHE = config["beego_cache"]
|
|
|
if len(REDIS_CACHE) <= 0 {
|
|
|
panic("redis链接参数没有配置")
|