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

Side by Side Diff: milo/appengine/rpc/buildinfo.go

Issue 2944983003: [milo] {buildbucket,buildbot,swarming,logdog} -> backends/*. (Closed)
Patch Set: fix the tests Created 3 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
« no previous file with comments | « milo/appengine/logdog/logDogStream.go ('k') | milo/appengine/swarming/README.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The LUCI Authors. All rights reserved. 1 // Copyright 2017 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package rpc 5 package rpc
6 6
7 import ( 7 import (
8 "github.com/luci/luci-go/grpc/grpcutil" 8 "github.com/luci/luci-go/grpc/grpcutil"
9 "github.com/luci/luci-go/luci_config/common/cfgtypes" 9 "github.com/luci/luci-go/luci_config/common/cfgtypes"
10 milo "github.com/luci/luci-go/milo/api/proto" 10 milo "github.com/luci/luci-go/milo/api/proto"
11 » "github.com/luci/luci-go/milo/appengine/buildbot" 11 » "github.com/luci/luci-go/milo/appengine/job_source/buildbot"
12 » "github.com/luci/luci-go/milo/appengine/swarming" 12 » "github.com/luci/luci-go/milo/appengine/job_source/swarming"
13 13
14 "google.golang.org/grpc/codes" 14 "google.golang.org/grpc/codes"
15 15
16 "golang.org/x/net/context" 16 "golang.org/x/net/context"
17 ) 17 )
18 18
19 // BuildInfoService is a BuildInfoServer implementation. 19 // BuildInfoService is a BuildInfoServer implementation.
20 type BuildInfoService struct { 20 type BuildInfoService struct {
21 // BuildBot is the BuildInfoProvider for the BuildBot service. 21 // BuildBot is the BuildInfoProvider for the BuildBot service.
22 BuildBot buildbot.BuildInfoProvider 22 BuildBot buildbot.BuildInfoProvider
(...skipping 24 matching lines...) Expand all
47 resp, err := svc.Swarming.GetBuildInfo(c, req.GetSwarming(), pro jectHint) 47 resp, err := svc.Swarming.GetBuildInfo(c, req.GetSwarming(), pro jectHint)
48 if err != nil { 48 if err != nil {
49 return nil, err 49 return nil, err
50 } 50 }
51 return resp, nil 51 return resp, nil
52 52
53 default: 53 default:
54 return nil, grpcutil.Errf(codes.InvalidArgument, "must supply a build") 54 return nil, grpcutil.Errf(codes.InvalidArgument, "must supply a build")
55 } 55 }
56 } 56 }
OLDNEW
« no previous file with comments | « milo/appengine/logdog/logDogStream.go ('k') | milo/appengine/swarming/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698