Exemplo n.º 1
0
func regMatch() {
	http.Handle("/match/new", lwutil.ReqHandler(newMatch))
	http.Handle("/match/del", lwutil.ReqHandler(delMatch))
	http.Handle("/match/list", lwutil.ReqHandler(listMatch))
	http.Handle("/match/start", lwutil.ReqHandler(startMatch))
	http.Handle("/match/addscore", lwutil.ReqHandler(addScore))
}
Exemplo n.º 2
0
func regBench() {
	http.Handle("/bench/login", lwutil.ReqHandler(benchLogin))
	http.Handle("/bench/hello", lwutil.ReqHandler(benchHello))
	http.Handle("/bench/dbsingleselect", lwutil.ReqHandler(benchDBSingleSelect))
	http.Handle("/bench/dbinsert", lwutil.ReqHandler(benchDBInsert))
	http.Handle("/bench/dbinserttx", lwutil.ReqHandler(benchDBInsertTx))
	http.Handle("/bench/redisget", lwutil.ReqHandler(benchRedisGet))
	http.Handle("/bench/json", lwutil.ReqHandler(benchJson))
	http.Handle("/bench/json2", lwutil.ReqHandler(benchJson2))
}
Exemplo n.º 3
0
func regAuth() {
	http.Handle("/auth/login", lwutil.ReqHandler(authLogin))
	http.Handle("/auth/logout", lwutil.ReqHandler(authLogout))
	http.Handle("/auth/register", lwutil.ReqHandler(authRegister))
	http.Handle("/auth/newapp", lwutil.ReqHandler(authNewApp))
	http.Handle("/auth/listapp", lwutil.ReqHandler(authListApp))
	http.Handle("/auth/setinfo", lwutil.ReqHandler(authSetInfo))
	http.Handle("/auth/info", lwutil.ReqHandler(authLoginInfo))
}
Exemplo n.º 4
0
func regAuth() {
	http.Handle("/auth/login", lwutil.ReqHandler(authLogin))
	http.Handle("/auth/logout", lwutil.ReqHandler(authLogout))
	http.Handle("/auth/register", lwutil.ReqHandler(authRegister))
	http.Handle("/auth/info", lwutil.ReqHandler(authLoginInfo))
}
Exemplo n.º 5
0
func regDig() {
	http.Handle("/dig/dig", lwutil.ReqHandler(dig))
}
Exemplo n.º 6
0
func regGame() {
	http.Handle("/game/new", lwutil.ReqHandler(newGame))
	http.Handle("/game/del", lwutil.ReqHandler(delGame))
	http.Handle("/game/list", lwutil.ReqHandler(listGame))
}
Exemplo n.º 7
0
func regRank() {
	http.Handle("/rank/mine", lwutil.ReqHandler(getMyRank))
}