OLD | NEW |
1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 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 buildbot | 5 package buildbot |
6 | 6 |
7 import ( | 7 import ( |
8 "bytes" | 8 "bytes" |
9 "compress/gzip" | 9 "compress/gzip" |
10 "compress/zlib" | 10 "compress/zlib" |
11 "encoding/base64" | 11 "encoding/base64" |
12 "encoding/json" | 12 "encoding/json" |
13 "fmt" | 13 "fmt" |
14 "net/http" | 14 "net/http" |
15 "strings" | 15 "strings" |
16 "time" | 16 "time" |
17 | 17 |
18 ds "github.com/luci/gae/service/datastore" | 18 ds "github.com/luci/gae/service/datastore" |
19 "github.com/luci/luci-go/common/clock" | 19 "github.com/luci/luci-go/common/clock" |
20 "github.com/luci/luci-go/common/iotools" | 20 "github.com/luci/luci-go/common/iotools" |
21 "github.com/luci/luci-go/common/logging" | 21 "github.com/luci/luci-go/common/logging" |
22 » "github.com/luci/luci-go/milo/appengine/common" | 22 » "github.com/luci/luci-go/milo/common" |
23 "github.com/luci/luci-go/server/router" | 23 "github.com/luci/luci-go/server/router" |
24 | 24 |
25 "golang.org/x/net/context" | 25 "golang.org/x/net/context" |
26 | 26 |
27 "github.com/luci/luci-go/common/tsmon/field" | 27 "github.com/luci/luci-go/common/tsmon/field" |
28 "github.com/luci/luci-go/common/tsmon/metric" | 28 "github.com/luci/luci-go/common/tsmon/metric" |
29 ) | 29 ) |
30 | 30 |
31 var ( | 31 var ( |
32 // Metrics | 32 // Metrics |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 398 |
399 } | 399 } |
400 if master != nil { | 400 if master != nil { |
401 code := doMaster(c, master, internal) | 401 code := doMaster(c, master, internal) |
402 if code != 0 { | 402 if code != 0 { |
403 return code | 403 return code |
404 } | 404 } |
405 } | 405 } |
406 return http.StatusOK | 406 return http.StatusOK |
407 } | 407 } |
OLD | NEW |