Exemplo n.º 1
0
//register all the handlers with the serve mux
func init() {
	Mux.Add("GET", "/static/", http.StripPrefix("/static", http.FileServer(Config)))
	Mux.Add("GET", "/work/{key:.+}", httputil.Handler(specificWork))
	Mux.Add("GET", "/work", httputil.Handler(work))
	Mux.Add("GET", "/result/{import:[^@]+}@{rev:.*}", httputil.Handler(specificImportResult))
	Mux.Add("GET", "/result/{import:[^@]+}", httputil.Handler(importResult))
	Mux.Add("GET", "/result", httputil.Handler(result))
	Mux.Add("GET", "/image/{import:.+}", httputil.Handler(image))
	Mux.Add("GET", "/how", httputil.Handler(how))
	Mux.Add("GET", "/pkg", httputil.Handler(pkg))
	Mux.Add("GET", "/", httputil.Handler(index))
}
Exemplo n.º 2
0
func init() {
	http.Handle(handleUrl, httputil.Handler(dispatchWork))
}
Exemplo n.º 3
0
func init() {
	http.Handle(handleUrl, httputil.Handler(dispatchNotifications))
}
Exemplo n.º 4
0
func init() {
	http.Handle("/_test/lease", httputil.Handler(lease))
	http.Handle("/_test/ping", httputil.Handler(ping))
	http.Handle("/_test/addwork", httputil.Handler(addwork))
}