Beispiel #1
0
func postinit() {
	uwsgi.RegisterSignal(17, "", hello)
	uwsgi.AddTimer(17, 3)

	uwsgi.RegisterSignal(30, "mule1", hello2)
	uwsgi.AddTimer(30, 5)
}
Beispiel #2
0
func main() {
	fmt.Println(os.Args)
	uwsgi.RegisterSignal(30, "", signal30)
	http.HandleFunc("/view/", viewHandler)
	http.HandleFunc("/post/", postHandler)
	uwsgi.Run()
}