| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Package alerts contains structs defined to implement the json format: | 5 // Package alerts contains structs defined to implement the json format: |
| 6 // https://docs.google.com/document/d/10MESGzRy9uAy3Y3-PxUcjiuF3BD3FGGmCNvCjqm3W
QQ/preview | 6 // https://docs.google.com/document/d/10MESGzRy9uAy3Y3-PxUcjiuF3BD3FGGmCNvCjqm3W
QQ/preview |
| 7 | 7 |
| 8 package messages | 8 package messages |
| 9 | 9 |
| 10 import ( | 10 import ( |
| 11 "os" | 11 "os" |
| 12 "time" | 12 "time" |
| 13 | 13 |
| 14 » "github.com/Sirupsen/logrus" | 14 » "infra/libs/logging" |
| 15 ) | 15 ) |
| 16 | 16 |
| 17 var ( | 17 var ( |
| 18 googLoc *time.Location | 18 googLoc *time.Location |
| 19 » log = logrus.New() | 19 » log = logging.DefaultLogger |
| 20 ) | 20 ) |
| 21 | 21 |
| 22 const ( | 22 const ( |
| 23 // GoogleTimeZone is the timezone used by the services whose | 23 // GoogleTimeZone is the timezone used by the services whose |
| 24 // messages this package parses. | 24 // messages this package parses. |
| 25 GoogleTimeZone = "UTC" | 25 GoogleTimeZone = "UTC" |
| 26 ) | 26 ) |
| 27 | 27 |
| 28 func init() { | 28 func init() { |
| 29 var err error | 29 var err error |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 Step string | 98 Step string |
| 99 URL string | 99 URL string |
| 100 } | 100 } |
| 101 | 101 |
| 102 // RegressionRange identifies the bounds of the location of a regression. | 102 // RegressionRange identifies the bounds of the location of a regression. |
| 103 type RegressionRange struct { | 103 type RegressionRange struct { |
| 104 Repo string | 104 Repo string |
| 105 URL string | 105 URL string |
| 106 Revisions []string | 106 Revisions []string |
| 107 } | 107 } |
| OLD | NEW |