| 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
|
| }
|
|
|