| Index: go/src/infra/tricium/service/gerrit-reporter/handlers.go
|
| diff --git a/go/src/infra/tricium/service/gerrit-reporter/handlers.go b/go/src/infra/tricium/service/gerrit-reporter/handlers.go
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a95d2afad7134d9f9030ff2aa374a04a05706752
|
| --- /dev/null
|
| +++ b/go/src/infra/tricium/service/gerrit-reporter/handlers.go
|
| @@ -0,0 +1,31 @@
|
| +package handlers
|
| +
|
| +import (
|
| + "fmt"
|
| + "net/http"
|
| +)
|
| +
|
| +func init() {
|
| + http.HandleFunc("/gerrit-reporter/status", statusPageHandler)
|
| + http.HandleFunc("/gerrit-reporter/queue-handler", queueHandler)
|
| +}
|
| +
|
| +func statusPageHandler(w http.ResponseWriter, r *http.Request) {
|
| + fmt.Fprint(w, statusPage)
|
| +}
|
| +
|
| +func queueHandler(w http.ResponseWriter, r *http.Request) {
|
| + // TODO(emso): Process request and report event to Gerrit
|
| +}
|
| +
|
| +var statusPage = `
|
| +<html>
|
| +<head><title>Tricium</title></head>
|
| +<body>
|
| +<font face="sans-serif">
|
| +== T R I C I U M (Under Construction) ==
|
| +<hr size="1">
|
| +<p>Status of the Gerrit Reporter ...</p>
|
| +<hr size="1">
|
| +</body>
|
| +</html>`
|
|
|