hotime/var.go
2019-09-14 17:01:45 +08:00

33 lines
810 B
Go

package hotime
var IsRun = false //当前状态
var App = map[string]*Application{} //整个项目
//var Db = HoTimeDB{} //数据库实例
var Config = Map{
"tpt": "tpt",
"logLevel": LOG_NIL,
"defFile": []string{"index.html", "index.htm"},
"dbHost": "127.0.0.1",
//"dbHost":"localhost",
"dbName": "test",
"dbUser": "root",
"dbPwd": "root",
"dbPort": "3306",
"dbCached":0,//0不开启缓存
"port": "0",
"cacheShortTime": 60 * 60 * 2,
"cacheLongTime": 60 * 60 * 24 * 30,
"sessionName": "HOTIME",
"error": Map{
"1":"系统错误",
},
"debug":1,//debug 0关闭1开启
"modeRouterStrict":false,//路由严格模式/a/b/c
"tlsPort":"0",
"tlsKey":"",
"tlsCert":"",
}