| OLD | NEW |
| 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 module | 5 package module |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "net/http" | 8 "net/http" |
| 9 | 9 |
| 10 // Importing pprof implicitly installs "/debug/*" profiling handlers. |
| 11 _ "net/http/pprof" |
| 12 |
| 10 "github.com/luci/luci-go/appengine/gaemiddleware" | 13 "github.com/luci/luci-go/appengine/gaemiddleware" |
| 11 "github.com/luci/luci-go/logdog/appengine/coordinator" | 14 "github.com/luci/luci-go/logdog/appengine/coordinator" |
| 12 "github.com/luci/luci-go/server/router" | 15 "github.com/luci/luci-go/server/router" |
| 13 "github.com/luci/luci-go/tumble" | 16 "github.com/luci/luci-go/tumble" |
| 14 | 17 |
| 15 // Include mutations package so its Mutations will register with tumble
via | 18 // Include mutations package so its Mutations will register with tumble
via |
| 16 // init(). | 19 // init(). |
| 17 _ "github.com/luci/luci-go/logdog/appengine/coordinator/mutations" | 20 _ "github.com/luci/luci-go/logdog/appengine/coordinator/mutations" |
| 18 ) | 21 ) |
| 19 | 22 |
| 20 func init() { | 23 func init() { |
| 21 tmb := tumble.Service{} | 24 tmb := tumble.Service{} |
| 22 | 25 |
| 23 r := router.New() | 26 r := router.New() |
| 24 base := gaemiddleware.BaseProd().Extend(coordinator.ProdCoordinatorServi
ce) | 27 base := gaemiddleware.BaseProd().Extend(coordinator.ProdCoordinatorServi
ce) |
| 25 tmb.InstallHandlers(r, base) | 28 tmb.InstallHandlers(r, base) |
| 26 gaemiddleware.InstallHandlers(r, base) | 29 gaemiddleware.InstallHandlers(r, base) |
| 27 | 30 |
| 28 http.Handle("/", r) | 31 http.Handle("/", r) |
| 29 } | 32 } |
| OLD | NEW |