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

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

Issue 2275123002: Milo: pRPC endpoint for getting Buildbot master data (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Renamed stuff 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/generate.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/logdog/api/endpoints/coordinator/registration/v1/registrationserver_dec.go b/milo/api/proto/buildbotserver_dec.go
similarity index 73%
copy from logdog/api/endpoints/coordinator/registration/v1/registrationserver_dec.go
copy to milo/api/proto/buildbotserver_dec.go
index c2d6a5cc6a4d2152d78a0bd7b2f9ab6848864cff..50548ac71719b158a326fe27e91bf87f1016d4a8 100644
--- a/logdog/api/endpoints/coordinator/registration/v1/registrationserver_dec.go
+++ b/milo/api/proto/buildbotserver_dec.go
@@ -1,15 +1,15 @@
// Code generated by svcdec; DO NOT EDIT
-package logdog
+package milo
import (
proto "github.com/golang/protobuf/proto"
context "golang.org/x/net/context"
)
-type DecoratedRegistration struct {
+type DecoratedBuildbot struct {
// Service is the service to decorate.
- Service RegistrationServer
+ Service BuildbotServer
// Prelude is called for each method before forwarding the call to Service.
// If Prelude returns an error, it the call is skipped and the error is
// processed via the Postlude (if one is defined), or it is returned directly.
@@ -22,17 +22,17 @@ type DecoratedRegistration struct {
Postlude func(c context.Context, methodName string, rsp proto.Message, err error) error
}
-func (s *DecoratedRegistration) RegisterPrefix(c context.Context, req *RegisterPrefixRequest) (rsp *RegisterPrefixResponse, err error) {
+func (s *DecoratedBuildbot) GetCompressedMasterJSON(c context.Context, req *MasterRequest) (rsp *CompressedMasterJSON, err error) {
var newCtx context.Context
if s.Prelude != nil {
- newCtx, err = s.Prelude(c, "RegisterPrefix", req)
+ newCtx, err = s.Prelude(c, "GetCompressedMasterJSON", req)
}
if err == nil {
c = newCtx
- rsp, err = s.Service.RegisterPrefix(c, req)
+ rsp, err = s.Service.GetCompressedMasterJSON(c, req)
}
if s.Postlude != nil {
- err = s.Postlude(c, "RegisterPrefix", rsp, err)
+ err = s.Postlude(c, "GetCompressedMasterJSON", rsp, err)
}
return
}
« no previous file with comments | « milo/api/proto/buildbot.pb.go ('k') | milo/api/proto/generate.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698