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

Unified Diff: milo/api/proto/buildbotserver_dec.go

Issue 2364653002: Buildbot build json grpc endpoint (Closed)
Patch Set: Pass tests Created 4 years, 3 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/api/proto/buildbot.pb.go ('k') | milo/api/proto/pb.discovery.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/api/proto/buildbotserver_dec.go
diff --git a/milo/api/proto/buildbotserver_dec.go b/milo/api/proto/buildbotserver_dec.go
index 50548ac71719b158a326fe27e91bf87f1016d4a8..05f2ba5931e91c69faf68895438b90e0c286115b 100644
--- a/milo/api/proto/buildbotserver_dec.go
+++ b/milo/api/proto/buildbotserver_dec.go
@@ -36,3 +36,18 @@ func (s *DecoratedBuildbot) GetCompressedMasterJSON(c context.Context, req *Mast
}
return
}
+
+func (s *DecoratedBuildbot) GetBuildbotBuildJSON(c context.Context, req *BuildbotBuildRequest) (rsp *BuildbotBuildJSON, err error) {
+ var newCtx context.Context
+ if s.Prelude != nil {
+ newCtx, err = s.Prelude(c, "GetBuildbotBuildJSON", req)
+ }
+ if err == nil {
+ c = newCtx
+ rsp, err = s.Service.GetBuildbotBuildJSON(c, req)
+ }
+ if s.Postlude != nil {
+ err = s.Postlude(c, "GetBuildbotBuildJSON", rsp, err)
+ }
+ return
+}
« no previous file with comments | « milo/api/proto/buildbot.pb.go ('k') | milo/api/proto/pb.discovery.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698