示例#1
0
文件: dcb.go 项目: gaxxx/funx
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")
}
示例#2
0
文件: dnd.go 项目: gaxxx/funx
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")
}
示例#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")
}
示例#4
0
文件: date.go 项目: gaxxx/funx
func main() {

	web.Get("/date", hello)
	web.Post("/date", bye)
	web.RunFcgi("127.0.0.1:9002")
}
示例#5
0
文件: proxy.go 项目: gaxxx/funx
func main() {
	web.Get("/proxy/izaobao", hello)
	web.Get("/proxy/gidden/(.*)", gidden)
	web.Get("/proxy/facebook/(.*)", face)
	web.RunFcgi("127.0.0.1:9003")
}