iedc-go/var.go

31 lines
786 B
Go
Raw Normal View History

2017-08-04 08:20:59 +00:00
package hotime
2017-08-10 10:14:56 +00:00
var IsRun = false //当前状态
2017-10-27 04:28:47 +00:00
var App = map[string]*Application{} //整个项目
2017-08-10 10:14:56 +00:00
2017-08-04 08:20:59 +00:00
//var Db = HoTimeDB{} //数据库实例
var Config = Map{
"tpt": "tpt",
2017-09-28 02:36:16 +00:00
"logLevel": LOG_NIL,
2017-08-04 08:20:59 +00:00
"defFile": []string{"index.html", "index.htm"},
"dbHost": "127.0.0.1",
//"dbHost":"localhost",
2017-08-10 10:14:56 +00:00
"dbName": "test",
"dbUser": "root",
"dbPwd": "root",
"dbPort": "3306",
2019-05-27 17:01:13 +00:00
"dbCached":0,//0不开启缓存
2019-05-27 05:46:03 +00:00
"port": "0",
2017-08-04 08:20:59 +00:00
"cacheShortTime": 60 * 60 * 2,
2017-08-10 10:14:56 +00:00
"cacheLongTime": 60 * 60 * 24 * 30,
"sessionName": "HOTIME",
"error": Map{},
2018-05-29 17:39:37 +00:00
"debug":1,//debug 0关闭1开启
2018-11-15 03:44:50 +00:00
"modeRouterStrict":false,//路由严格模式/a/b/c
2019-05-27 05:46:03 +00:00
"tlsPort":"0",
"tlsKey":"",
"tlsCert":"",
2017-08-04 08:20:59 +00:00
}