| 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 coordinator | 5 package coordinator |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | 8 "fmt" |
| 9 "time" | 9 "time" |
| 10 | 10 |
| 11 "github.com/luci/luci-go/common/proto/google" | 11 "github.com/luci/luci-go/common/proto/google" |
| 12 "github.com/luci/luci-go/logdog/api/endpoints/coordinator/logs/v1" | 12 "github.com/luci/luci-go/logdog/api/endpoints/coordinator/logs/v1" |
| 13 "github.com/luci/luci-go/logdog/api/logpb" | 13 "github.com/luci/luci-go/logdog/api/logpb" |
| 14 "github.com/luci/luci-go/logdog/common/types" | 14 "github.com/luci/luci-go/logdog/common/types" |
| 15 "github.com/luci/luci-go/luci_config/common/cfgtypes" | 15 "github.com/luci/luci-go/luci_config/common/cfgtypes" |
| 16 |
| 16 "golang.org/x/net/context" | 17 "golang.org/x/net/context" |
| 17 ) | 18 ) |
| 18 | 19 |
| 19 // QueryTrinary is a 3-value query option type. | 20 // QueryTrinary is a 3-value query option type. |
| 20 type QueryTrinary int | 21 type QueryTrinary int |
| 21 | 22 |
| 22 const ( | 23 const ( |
| 23 // Both means that the value should not have an effect. | 24 // Both means that the value should not have an effect. |
| 24 Both QueryTrinary = iota | 25 Both QueryTrinary = iota |
| 25 // Yes is a positive effect. | 26 // Yes is a positive effect. |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 } | 168 } |
| 168 } | 169 } |
| 169 | 170 |
| 170 // Advance our query cursor. | 171 // Advance our query cursor. |
| 171 if resp.Next == "" { | 172 if resp.Next == "" { |
| 172 return nil | 173 return nil |
| 173 } | 174 } |
| 174 req.Next = resp.Next | 175 req.Next = resp.Next |
| 175 } | 176 } |
| 176 } | 177 } |
| OLD | NEW |