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 |
6 | 6 |
7 import ( | 7 import ( |
8 "fmt" | 8 "fmt" |
9 "time" | 9 "time" |
10 | 10 |
11 "golang.org/x/net/context" | 11 "golang.org/x/net/context" |
12 | 12 |
13 "github.com/luci/luci-go/common/clock" | 13 "github.com/luci/luci-go/common/clock" |
14 "github.com/luci/luci-go/common/proto/google" | 14 "github.com/luci/luci-go/common/proto/google" |
15 miloProto "github.com/luci/luci-go/common/proto/milo" | 15 miloProto "github.com/luci/luci-go/common/proto/milo" |
16 "github.com/luci/luci-go/milo/api/resp" | 16 "github.com/luci/luci-go/milo/api/resp" |
17 » "github.com/luci/luci-go/milo/appengine/common/model" | 17 » "github.com/luci/luci-go/milo/common/model" |
18 ) | 18 ) |
19 | 19 |
20 // URLBuilder constructs URLs for various link types. | 20 // URLBuilder constructs URLs for various link types. |
21 type URLBuilder interface { | 21 type URLBuilder interface { |
22 // LinkURL returns the URL associated with the supplied Link. | 22 // LinkURL returns the URL associated with the supplied Link. |
23 // | 23 // |
24 // If no URL could be built for that Link, nil will be returned. | 24 // If no URL could be built for that Link, nil will be returned. |
25 BuildLink(l *miloProto.Link) *resp.Link | 25 BuildLink(l *miloProto.Link) *resp.Link |
26 } | 26 } |
27 | 27 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 for _, prop := range mainAnno.Property { | 225 for _, prop := range mainAnno.Property { |
226 propGroup.Property = append(propGroup.Property, &resp.Property{ | 226 propGroup.Property = append(propGroup.Property, &resp.Property{ |
227 Key: prop.Name, | 227 Key: prop.Name, |
228 Value: prop.Value, | 228 Value: prop.Value, |
229 }) | 229 }) |
230 } | 230 } |
231 build.PropertyGroup = append(build.PropertyGroup, propGroup) | 231 build.PropertyGroup = append(build.PropertyGroup, propGroup) |
232 | 232 |
233 return | 233 return |
234 } | 234 } |
OLD | NEW |