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

Side by Side Diff: milo/appengine/frontend/main.go

Issue 2881213004: [milo] fix raw annotation stream rendering endpoint. (Closed)
Patch Set: make url scheme better Created 3 years, 7 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
« no previous file with comments | « no previous file | milo/appengine/logdog/html.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package frontend 5 package frontend
6 6
7 import ( 7 import (
8 "net/http" 8 "net/http"
9 9
10 "github.com/golang/protobuf/proto" 10 "github.com/golang/protobuf/proto"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 r.GET("/swarming/prod/:id", basemw, swarming.BuildHandler) 54 r.GET("/swarming/prod/:id", basemw, swarming.BuildHandler)
55 55
56 // Buildbucket 56 // Buildbucket
57 r.GET("/buildbucket/:bucket/:builder", basemw, buildbucket.BuilderHandle r) 57 r.GET("/buildbucket/:bucket/:builder", basemw, buildbucket.BuilderHandle r)
58 58
59 // Buildbot 59 // Buildbot
60 r.GET("/buildbot/:master/:builder/:build", basemw, buildbot.BuildHandler ) 60 r.GET("/buildbot/:master/:builder/:build", basemw, buildbot.BuildHandler )
61 r.GET("/buildbot/:master/:builder/", basemw, buildbot.BuilderHandler) 61 r.GET("/buildbot/:master/:builder/", basemw, buildbot.BuilderHandler)
62 62
63 // LogDog Milo Annotation Streams. 63 // LogDog Milo Annotation Streams.
64 » r.GET("/logdog/build/:project/*prefix", basemw, logdog.BuildHandler) 64 » // This mimicks the `logdog://logdog_host/project/*path` url scheme seen on
65 » // swarming tasks.
66 » r.GET("/raw/build/:logdog_host/:project/*path", basemw, logdog.BuildHand ler)
65 67
66 // PubSub subscription endpoints. 68 // PubSub subscription endpoints.
67 r.POST("/_ah/push-handlers/buildbot", basemw, buildbot.PubSubHandler) 69 r.POST("/_ah/push-handlers/buildbot", basemw, buildbot.PubSubHandler)
68 70
69 // pRPC style endpoints. 71 // pRPC style endpoints.
70 api := prpc.Server{ 72 api := prpc.Server{
71 UnaryServerInterceptor: grpcmon.NewUnaryServerInterceptor(nil), 73 UnaryServerInterceptor: grpcmon.NewUnaryServerInterceptor(nil),
72 } 74 }
73 milo.RegisterBuildbotServer(&api, &milo.DecoratedBuildbot{ 75 milo.RegisterBuildbotServer(&api, &milo.DecoratedBuildbot{
74 Service: &buildbot.Service{}, 76 Service: &buildbot.Service{},
75 Prelude: emptyPrelude, 77 Prelude: emptyPrelude,
76 }) 78 })
77 milo.RegisterBuildInfoServer(&api, &milo.DecoratedBuildInfo{ 79 milo.RegisterBuildInfoServer(&api, &milo.DecoratedBuildInfo{
78 Service: &buildinfo.Service{}, 80 Service: &buildinfo.Service{},
79 Prelude: emptyPrelude, 81 Prelude: emptyPrelude,
80 }) 82 })
81 discovery.Enable(&api) 83 discovery.Enable(&api)
82 api.InstallHandlers(r, gaemiddleware.BaseProd()) 84 api.InstallHandlers(r, gaemiddleware.BaseProd())
83 85
84 http.DefaultServeMux.Handle("/", r) 86 http.DefaultServeMux.Handle("/", r)
85 } 87 }
OLDNEW
« no previous file with comments | « no previous file | milo/appengine/logdog/html.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698