Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: golden/go/skiacorrectness/main.go

Issue 1940743002: Migrate trybot support Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | golden/newui/res/imp/testdata.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 package main 1 package main
2 2
3 import ( 3 import (
4 "encoding/json" 4 "encoding/json"
5 "flag" 5 "flag"
6 "fmt" 6 "fmt"
7 "io/ioutil" 7 "io/ioutil"
8 "net/http" 8 "net/http"
9 "os" 9 "os"
10 "path/filepath" 10 "path/filepath"
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 router.HandleFunc("/json/paramset", polyParamsHandler).Methods(" GET") 446 router.HandleFunc("/json/paramset", polyParamsHandler).Methods(" GET")
447 router.HandleFunc("/json/search", jsonSearchHandler).Methods("GE T") 447 router.HandleFunc("/json/search", jsonSearchHandler).Methods("GE T")
448 router.HandleFunc("/json/diff", jsonDiffHandler).Methods("GET") 448 router.HandleFunc("/json/diff", jsonDiffHandler).Methods("GET")
449 router.HandleFunc("/json/details", jsonDetailsHandler).Methods(" GET") 449 router.HandleFunc("/json/details", jsonDetailsHandler).Methods(" GET")
450 router.HandleFunc("/json/ignores", jsonIgnoresHandler).Methods(" GET") 450 router.HandleFunc("/json/ignores", jsonIgnoresHandler).Methods(" GET")
451 router.HandleFunc("/json/ignores/add/", jsonIgnoresAddHandler).M ethods("POST") 451 router.HandleFunc("/json/ignores/add/", jsonIgnoresAddHandler).M ethods("POST")
452 router.HandleFunc("/json/ignores/del/{id}", jsonIgnoresDeleteHan dler).Methods("POST") 452 router.HandleFunc("/json/ignores/del/{id}", jsonIgnoresDeleteHan dler).Methods("POST")
453 router.HandleFunc("/json/ignores/save/{id}", jsonIgnoresUpdateHa ndler).Methods("POST") 453 router.HandleFunc("/json/ignores/save/{id}", jsonIgnoresUpdateHa ndler).Methods("POST")
454 router.HandleFunc("/json/triage", jsonTriageHandler).Methods("PO ST") 454 router.HandleFunc("/json/triage", jsonTriageHandler).Methods("PO ST")
455 router.HandleFunc("/json/clusterdiff", jsonClusterDiffHandler).M ethods("GET") 455 router.HandleFunc("/json/clusterdiff", jsonClusterDiffHandler).M ethods("GET")
456 router.HandleFunc("/json/trybot", listTrybotsJSONHandler).Method s("GET")
456 457
457 // For everything else serve the same markup. 458 // For everything else serve the same markup.
458 indexFile := *resourcesDir + "/index.html" 459 indexFile := *resourcesDir + "/index.html"
459 router.PathPrefix("/").HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 460 router.PathPrefix("/").HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
460 http.ServeFile(w, r, indexFile) 461 http.ServeFile(w, r, indexFile)
461 }) 462 })
462 } else { 463 } else {
463 router.HandleFunc("/", byBlameHandler).Methods("GET") 464 router.HandleFunc("/", byBlameHandler).Methods("GET")
464 router.HandleFunc("/list", templateHandler("list.html")).Methods ("GET") 465 router.HandleFunc("/list", templateHandler("list.html")).Methods ("GET")
465 router.HandleFunc("/byblame", byBlameHandler).Methods("GET") 466 router.HandleFunc("/byblame", byBlameHandler).Methods("GET")
(...skipping 23 matching lines...) Expand all
489 if *newUI { 490 if *newUI {
490 http.HandleFunc("/json/trstatus", jsonStatusHandler) 491 http.HandleFunc("/json/trstatus", jsonStatusHandler)
491 } 492 }
492 493
493 http.Handle("/", rootHandler) 494 http.Handle("/", rootHandler)
494 495
495 // Start the server 496 // Start the server
496 glog.Infoln("Serving on http://127.0.0.1" + *port) 497 glog.Infoln("Serving on http://127.0.0.1" + *port)
497 glog.Fatal(http.ListenAndServe(*port, nil)) 498 glog.Fatal(http.ListenAndServe(*port, nil))
498 } 499 }
OLDNEW
« no previous file with comments | « no previous file | golden/newui/res/imp/testdata.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698