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

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: Adds optional display of the request form 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 "html/template"
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 var basePage = template.Must(template.ParseFiles("templates/base.html"))
14
15 func statusPageHandler(w http.ResponseWriter, r *http.Request) {
16 // TODO(emso): Add Gerrit reporter stats
17 data := map[string]interface{}{
18 "Msg": "Status of the Gerrit Reporter ...",
19 }
20 basePage.Execute(w, data)
21 }
22
23 func queueHandler(w http.ResponseWriter, r *http.Request) {
24 // TODO(emso): Process request and report event to Gerrit
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698