框架基本完成

This commit is contained in:
hoteas
2017-08-10 10:14:56 +00:00
parent e02a80fda8
commit b07bc3c9b9
8 changed files with 242 additions and 203 deletions
+11 -7
View File
@@ -9,6 +9,9 @@ import "sync"
//}
var mutex = map[interface{}]*sync.RWMutex{} //安全锁
var mutexer = sync.RWMutex{} //读写锁
var IsRun = false //当前状态
var application = map[string]*App{} //整个项目
//var Db = HoTimeDB{} //数据库实例
var Config = Map{
@@ -17,12 +20,13 @@ var Config = Map{
"defFile": []string{"index.html", "index.htm"},
"dbHost": "127.0.0.1",
//"dbHost":"localhost",
"dbName": "test",
"dbUser": "root",
"dbPwd": "root",
"dbPort": "3306",
"port": "80",
"dbName": "test",
"dbUser": "root",
"dbPwd": "root",
"dbPort": "3306",
"port": "80",
"cacheShortTime": 60 * 60 * 2,
"cacheLongTime": 60 * 60 * 24*30,
"sessionName":"HOTIME",
"cacheLongTime": 60 * 60 * 24 * 30,
"sessionName": "HOTIME",
"error": Map{},
}