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

Side by Side Diff: milo/frontend/main.go

Issue 2948143003: [milo] job_source -> build_source. (Closed)
Patch Set: fix 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/frontend/frontpage.go ('k') | milo/frontend/main_test.go » ('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 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 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 frontend 5 package frontend
6 6
7 import ( 7 import (
8 "net/http" 8 "net/http"
9 9
10 "github.com/golang/protobuf/proto" 10 "github.com/golang/protobuf/proto"
11 "golang.org/x/net/context" 11 "golang.org/x/net/context"
12 12
13 "github.com/luci/luci-go/appengine/gaemiddleware" 13 "github.com/luci/luci-go/appengine/gaemiddleware"
14 "github.com/luci/luci-go/grpc/discovery" 14 "github.com/luci/luci-go/grpc/discovery"
15 "github.com/luci/luci-go/grpc/grpcmon" 15 "github.com/luci/luci-go/grpc/grpcmon"
16 "github.com/luci/luci-go/grpc/prpc" 16 "github.com/luci/luci-go/grpc/prpc"
17 milo "github.com/luci/luci-go/milo/api/proto" 17 milo "github.com/luci/luci-go/milo/api/proto"
18 "github.com/luci/luci-go/milo/build_source/buildbot"
19 "github.com/luci/luci-go/milo/build_source/buildbucket"
20 "github.com/luci/luci-go/milo/build_source/raw_presentation"
21 "github.com/luci/luci-go/milo/build_source/swarming"
18 "github.com/luci/luci-go/milo/common" 22 "github.com/luci/luci-go/milo/common"
19 "github.com/luci/luci-go/milo/frontend/console" 23 "github.com/luci/luci-go/milo/frontend/console"
20 "github.com/luci/luci-go/milo/job_source/buildbot"
21 "github.com/luci/luci-go/milo/job_source/buildbucket"
22 "github.com/luci/luci-go/milo/job_source/raw_presentation"
23 "github.com/luci/luci-go/milo/job_source/swarming"
24 "github.com/luci/luci-go/milo/rpc" 24 "github.com/luci/luci-go/milo/rpc"
25 "github.com/luci/luci-go/server/router" 25 "github.com/luci/luci-go/server/router"
26 ) 26 )
27 27
28 func emptyPrelude(c context.Context, methodName string, req proto.Message) (cont ext.Context, error) { 28 func emptyPrelude(c context.Context, methodName string, req proto.Message) (cont ext.Context, error) {
29 return c, nil 29 return c, nil
30 } 30 }
31 31
32 // Where it all begins!!! 32 // Where it all begins!!!
33 func init() { 33 func init() {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 }) 78 })
79 milo.RegisterBuildInfoServer(&api, &milo.DecoratedBuildInfo{ 79 milo.RegisterBuildInfoServer(&api, &milo.DecoratedBuildInfo{
80 Service: &rpc.BuildInfoService{}, 80 Service: &rpc.BuildInfoService{},
81 Prelude: emptyPrelude, 81 Prelude: emptyPrelude,
82 }) 82 })
83 discovery.Enable(&api) 83 discovery.Enable(&api)
84 api.InstallHandlers(r, gaemiddleware.BaseProd()) 84 api.InstallHandlers(r, gaemiddleware.BaseProd())
85 85
86 http.DefaultServeMux.Handle("/", r) 86 http.DefaultServeMux.Handle("/", r)
87 } 87 }
OLDNEW
« no previous file with comments | « milo/frontend/frontpage.go ('k') | milo/frontend/main_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698