| OLD | NEW |
| (Empty) | |
| 1 package handlers |
| 2 |
| 3 import ( |
| 4 "fmt" |
| 5 "net/http" |
| 6 ) |
| 7 |
| 8 func init() { |
| 9 http.HandleFunc("/gerrit-reporter/status", statusPageHandler) |
| 10 http.HandleFunc("/gerrit-reporter/queue-handler", queueHandler) |
| 11 } |
| 12 |
| 13 func statusPageHandler(w http.ResponseWriter, r *http.Request) { |
| 14 fmt.Fprint(w, statusPage) |
| 15 } |
| 16 |
| 17 func queueHandler(w http.ResponseWriter, r *http.Request) { |
| 18 // TODO(emso): Process request and report event to Gerrit |
| 19 } |
| 20 |
| 21 var statusPage = ` |
| 22 <html> |
| 23 <head><title>Tricium</title></head> |
| 24 <body> |
| 25 <font face="sans-serif"> |
| 26 == T R I C I U M (Under Construction) == |
| 27 <hr size="1"> |
| 28 <p>Status of the Gerrit Reporter ...</p> |
| 29 <hr size="1"> |
| 30 </body> |
| 31 </html>` |
| OLD | NEW |