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

Unified Diff: milo/appengine/frontend/milo.go

Issue 2667353002: milo: Add barebones BuildInfo pRPC service. (Closed)
Patch Set: Swap order, users first. Created 3 years, 11 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
« no previous file with comments | « milo/appengine/buildinfo/service.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/frontend/milo.go
diff --git a/milo/appengine/frontend/milo.go b/milo/appengine/frontend/milo.go
index 408cc7fa3b5fbc39353ad3c82308711e30c0b92a..178976c78d363408b9f28dfd3a90d23a1a895f05 100644
--- a/milo/appengine/frontend/milo.go
+++ b/milo/appengine/frontend/milo.go
@@ -7,9 +7,9 @@ package frontend
import (
"net/http"
+ "github.com/golang/protobuf/proto"
"golang.org/x/net/context"
- "github.com/golang/protobuf/proto"
"github.com/luci/luci-go/appengine/gaemiddleware"
"github.com/luci/luci-go/grpc/discovery"
"github.com/luci/luci-go/grpc/grpcmon"
@@ -17,6 +17,7 @@ import (
milo "github.com/luci/luci-go/milo/api/proto"
"github.com/luci/luci-go/milo/appengine/buildbot"
"github.com/luci/luci-go/milo/appengine/buildbucket"
+ "github.com/luci/luci-go/milo/appengine/buildinfo"
"github.com/luci/luci-go/milo/appengine/console"
"github.com/luci/luci-go/milo/appengine/logdog"
"github.com/luci/luci-go/milo/appengine/settings"
@@ -78,6 +79,10 @@ func init() {
Service: &buildbot.Service{},
Prelude: emptyPrelude,
})
+ milo.RegisterBuildInfoServer(&api, &milo.DecoratedBuildInfo{
+ Service: &buildinfo.Service{},
+ Prelude: emptyPrelude,
+ })
discovery.Enable(&api)
api.InstallHandlers(r, gaemiddleware.BaseProd())
« no previous file with comments | « milo/appengine/buildinfo/service.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698