| 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 main | 5 package main |
| 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 log "github.com/luci/luci-go/common/logging" | 14 log "github.com/luci/luci-go/common/logging" |
| 12 "github.com/luci/luci-go/grpc/discovery" | 15 "github.com/luci/luci-go/grpc/discovery" |
| 13 "github.com/luci/luci-go/grpc/prpc" | 16 "github.com/luci/luci-go/grpc/prpc" |
| 14 adminPb "github.com/luci/luci-go/logdog/api/endpoints/coordinator/admin/
v1" | 17 adminPb "github.com/luci/luci-go/logdog/api/endpoints/coordinator/admin/
v1" |
| 15 logsPb "github.com/luci/luci-go/logdog/api/endpoints/coordinator/logs/v1
" | 18 logsPb "github.com/luci/luci-go/logdog/api/endpoints/coordinator/logs/v1
" |
| 16 registrationPb "github.com/luci/luci-go/logdog/api/endpoints/coordinator
/registration/v1" | 19 registrationPb "github.com/luci/luci-go/logdog/api/endpoints/coordinator
/registration/v1" |
| 17 servicesPb "github.com/luci/luci-go/logdog/api/endpoints/coordinator/ser
vices/v1" | 20 servicesPb "github.com/luci/luci-go/logdog/api/endpoints/coordinator/ser
vices/v1" |
| 18 "github.com/luci/luci-go/logdog/appengine/coordinator" | 21 "github.com/luci/luci-go/logdog/appengine/coordinator" |
| 19 "github.com/luci/luci-go/logdog/appengine/coordinator/config" | 22 "github.com/luci/luci-go/logdog/appengine/coordinator/config" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 return false | 74 return false |
| 72 } | 75 } |
| 73 | 76 |
| 74 for _, o := range ccfg.RpcAllowOrigins { | 77 for _, o := range ccfg.RpcAllowOrigins { |
| 75 if o == origin { | 78 if o == origin { |
| 76 return true | 79 return true |
| 77 } | 80 } |
| 78 } | 81 } |
| 79 return false | 82 return false |
| 80 } | 83 } |
| OLD | NEW |