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

Side by Side 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 unified diff | Download patch
OLDNEW
(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>`
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698