Exemplo n.º 1
0
func main() {
	fmt.Println(os.Args)
	uwsgi.RegisterSignal(30, "", signal30)
	http.HandleFunc("/view/", viewHandler)
	http.HandleFunc("/post/", postHandler)
	uwsgi.Run()
}
Exemplo n.º 2
0
func main() {
	http.HandleFunc("/get/", getHandler)
	http.HandleFunc("/update/", updateHandler)
	http.HandleFunc("/set/", setHandler)
	http.HandleFunc("/delete/", deleteHandler)
	http.HandleFunc("/check/", checkHandler)
	uwsgi.Run()
}
Exemplo n.º 3
0
func main() {
	uwsgi.PostInit(postinit)
	uwsgi.PostFork(postfork)
	uwsgi.RequestHandler(request_handler)
	uwsgi.Run()
}
Exemplo n.º 4
0
func main() {
	fmt.Println(os.Args)
	http.HandleFunc("/view/", viewHandler)
	http.HandleFunc("/post/", postHandler)
	uwsgi.Run()
}