Chromium Code Reviews| 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 raw_presentation | 5 package raw_presentation |
|
Ryan Tseng
2017/07/10 17:03:41
This too?
| |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "errors" | 8 "errors" |
| 9 "fmt" | 9 "fmt" |
| 10 "time" | 10 "time" |
| 11 | 11 |
| 12 log "github.com/luci/luci-go/common/logging" | 12 log "github.com/luci/luci-go/common/logging" |
| 13 "github.com/luci/luci-go/common/proto/google" | 13 "github.com/luci/luci-go/common/proto/google" |
| 14 miloProto "github.com/luci/luci-go/common/proto/milo" | 14 miloProto "github.com/luci/luci-go/common/proto/milo" |
| 15 "github.com/luci/luci-go/logdog/api/logpb" | 15 "github.com/luci/luci-go/logdog/api/logpb" |
| 16 "github.com/luci/luci-go/logdog/client/coordinator" | 16 "github.com/luci/luci-go/logdog/client/coordinator" |
| 17 "github.com/luci/luci-go/logdog/common/types" | 17 "github.com/luci/luci-go/logdog/common/types" |
| 18 "github.com/luci/luci-go/logdog/common/viewer" | 18 "github.com/luci/luci-go/logdog/common/viewer" |
| 19 "github.com/luci/luci-go/luci_config/common/cfgtypes" | 19 "github.com/luci/luci-go/luci_config/common/cfgtypes" |
| 20 "github.com/luci/luci-go/milo/api/resp" | 20 "github.com/luci/luci-go/milo/api/resp" |
| 21 » "github.com/luci/luci-go/milo/build_source/raw_presentation/internal" | 21 » "github.com/luci/luci-go/milo/buildSource/raw_presentation/internal" |
| 22 | 22 |
| 23 "github.com/golang/protobuf/proto" | 23 "github.com/golang/protobuf/proto" |
| 24 "golang.org/x/net/context" | 24 "golang.org/x/net/context" |
| 25 ) | 25 ) |
| 26 | 26 |
| 27 const ( | 27 const ( |
| 28 // intermediateCacheLifetime is the amount of time to cache intermediate (non- | 28 // intermediateCacheLifetime is the amount of time to cache intermediate (non- |
| 29 // terminal) annotation streams. Terminal annotation streams are cached | 29 // terminal) annotation streams. Terminal annotation streams are cached |
| 30 // indefinitely. | 30 // indefinitely. |
| 31 intermediateCacheLifetime = 10 * time.Second | 31 intermediateCacheLifetime = 10 * time.Second |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 214 if link.Label == "" { | 214 if link.Label == "" { |
| 215 link.Label = "unnamed" | 215 link.Label = "unnamed" |
| 216 } | 216 } |
| 217 return link | 217 return link |
| 218 | 218 |
| 219 default: | 219 default: |
| 220 // Don't know how to render. | 220 // Don't know how to render. |
| 221 return nil | 221 return nil |
| 222 } | 222 } |
| 223 } | 223 } |
| OLD | NEW |