Exemple #1
0
func main() {
	m = monitor.NewMonitor(maxQuery, defaultTick)
	web.Post("/dcb/submit", addSub)
	web.Get("/dcb/", listSub)
	web.Get("/dcb/list", listSub)
	web.Get(`/dcb/remove/(.*)`, removeSub)
	web.RunFcgi("127.0.0.1:9006")
	//web.Run("127.0.0.1:9002")
}
Exemple #2
0
func main() {
	fmt.Printf("start\n")
	out, err := ioutil.ReadFile("./index.php")
	if err != nil {
		return
	}
	s := string(out)
	hello := func() string {
		return s
	}
	web.Get("/", hello)
	web.Get("/dnd/dnd.go", hello)
	web.Post("/dnd/dnd.go", bye)
	web.RunFcgi("127.0.0.1:9001")
	//web.Run("0.0.0.0:9000")
}
Exemple #3
0
func main() {
	web.Get("/style.css", getStyle)
	web.Get("/(.*)", gentoomen.GetPage)
	//web.Run("0.0.0.0:8080")
	web.RunFcgi("0.0.0.0:6580")
}
Exemple #4
0
func main() {

	web.Get("/date", hello)
	web.Post("/date", bye)
	web.RunFcgi("127.0.0.1:9002")
}
Exemple #5
0
func main() {
	web.Get("/proxy/izaobao", hello)
	web.Get("/proxy/gidden/(.*)", gidden)
	web.Get("/proxy/facebook/(.*)", face)
	web.RunFcgi("127.0.0.1:9003")
}