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

Side by Side Diff: common/api/dm/service/v1/depsserver_dec.go

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: fix imports and make dummy.go a real file Created 4 years, 6 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
OLDNEW
1 // Code generated by svcdec; DO NOT EDIT 1 // Code generated by svcdec; DO NOT EDIT
2 2
3 package dm 3 package dm
4 4
5 import ( 5 import (
6 proto "github.com/golang/protobuf/proto" 6 proto "github.com/golang/protobuf/proto"
7 context "golang.org/x/net/context" 7 context "golang.org/x/net/context"
8 8
9 » google_protobuf1 "github.com/luci/luci-go/common/proto/google" 9 » google_protobuf2 "github.com/luci/luci-go/common/proto/google"
10 ) 10 )
11 11
12 type DecoratedDeps struct { 12 type DecoratedDeps struct {
13 // Service is the service to decorate. 13 // Service is the service to decorate.
14 Service DepsServer 14 Service DepsServer
15 // Prelude is called in each method before forwarding the call to Servic e. 15 // Prelude is called in each method before forwarding the call to Servic e.
16 // If Prelude returns an error, it is returned without forwarding the ca ll. 16 // If Prelude returns an error, it is returned without forwarding the ca ll.
17 Prelude func(c context.Context, methodName string, req proto.Message) (c ontext.Context, error) 17 Prelude func(c context.Context, methodName string, req proto.Message) (c ontext.Context, error)
18 } 18 }
19 19
20 func (s *DecoratedDeps) EnsureGraphData(c context.Context, req *EnsureGraphDataR eq) (*EnsureGraphDataRsp, error) { 20 func (s *DecoratedDeps) EnsureGraphData(c context.Context, req *EnsureGraphDataR eq) (*EnsureGraphDataRsp, error) {
21 c, err := s.Prelude(c, "EnsureGraphData", req) 21 c, err := s.Prelude(c, "EnsureGraphData", req)
22 if err != nil { 22 if err != nil {
23 return nil, err 23 return nil, err
24 } 24 }
25 return s.Service.EnsureGraphData(c, req) 25 return s.Service.EnsureGraphData(c, req)
26 } 26 }
27 27
28 func (s *DecoratedDeps) ActivateExecution(c context.Context, req *ActivateExecut ionReq) (*google_protobuf1.Empty, error) { 28 func (s *DecoratedDeps) ActivateExecution(c context.Context, req *ActivateExecut ionReq) (*google_protobuf2.Empty, error) {
29 c, err := s.Prelude(c, "ActivateExecution", req) 29 c, err := s.Prelude(c, "ActivateExecution", req)
30 if err != nil { 30 if err != nil {
31 return nil, err 31 return nil, err
32 } 32 }
33 return s.Service.ActivateExecution(c, req) 33 return s.Service.ActivateExecution(c, req)
34 } 34 }
35 35
36 func (s *DecoratedDeps) FinishAttempt(c context.Context, req *FinishAttemptReq) (*google_protobuf1.Empty, error) { 36 func (s *DecoratedDeps) FinishAttempt(c context.Context, req *FinishAttemptReq) (*google_protobuf2.Empty, error) {
37 c, err := s.Prelude(c, "FinishAttempt", req) 37 c, err := s.Prelude(c, "FinishAttempt", req)
38 if err != nil { 38 if err != nil {
39 return nil, err 39 return nil, err
40 } 40 }
41 return s.Service.FinishAttempt(c, req) 41 return s.Service.FinishAttempt(c, req)
42 } 42 }
43 43
44 func (s *DecoratedDeps) WalkGraph(c context.Context, req *WalkGraphReq) (*GraphD ata, error) { 44 func (s *DecoratedDeps) WalkGraph(c context.Context, req *WalkGraphReq) (*GraphD ata, error) {
45 c, err := s.Prelude(c, "WalkGraph", req) 45 c, err := s.Prelude(c, "WalkGraph", req)
46 if err != nil { 46 if err != nil {
47 return nil, err 47 return nil, err
48 } 48 }
49 return s.Service.WalkGraph(c, req) 49 return s.Service.WalkGraph(c, req)
50 } 50 }
51
52 func (s *DecoratedDeps) ClaimExecution(c context.Context, req *google_protobuf1. Empty) (*ClaimExecutionRsp, error) {
53 c, err := s.Prelude(c, "ClaimExecution", req)
54 if err != nil {
55 return nil, err
56 }
57 return s.Service.ClaimExecution(c, req)
58 }
OLDNEW
« no previous file with comments | « common/api/dm/service/v1/datastore_embed_test.go ('k') | common/api/dm/service/v1/ensure_graph_data.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698