gform配置文件支持linkinfo字段

This commit is contained in:
john
2018-11-01 09:00:00 +08:00
parent bcee68ff22
commit 190f2ff27c

View File

@ -161,6 +161,9 @@ func Database(name...string) *gdb.Db {
if value, ok := nodem["priority"]; ok {
node.Priority = gconv.Int(value)
}
if value, ok := nodem["linkinfo"]; ok {
node.Linkinfo = gconv.String(value)
}
if value, ok := nodem["max-idle"]; ok {
node.MaxIdleConnCount = gconv.Int(value)
}