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

Unified Diff: go/src/infra/tricium/service/gerrit-reporter/handlers.go

Issue 2125603002: Adds initial Tricium service GAE configs (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
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>`

Powered by Google App Engine
This is Rietveld 408576698