Chromium Code Reviews| Index: appengine/cmd/milo/resp/console.go |
| diff --git a/appengine/cmd/milo/resp/console.go b/appengine/cmd/milo/resp/console.go |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..da336838cbfbde63c2e97bb2c2b2a6c3b5d107f0 |
| --- /dev/null |
| +++ b/appengine/cmd/milo/resp/console.go |
| @@ -0,0 +1,51 @@ |
| +// Copyright 2016 The LUCI Authors. All rights reserved. |
| +// Use of this source code is governed under the Apache License, Version 2.0 |
| +// that can be found in the LICENSE file. |
| + |
| +package resp |
| + |
|
nodir
2016/08/03 20:26:18
comments in this file would be great
hinoka
2016/08/03 21:55:40
Done.
|
| +// This is optimized for a table view. |
| +type Console struct { |
| + Name string |
| + |
| + Commit []CommitBuild |
| + |
| + BuilderGroup []*BuilderGroup |
| + BuilderRef []BuilderRef |
| +} |
| + |
| +type BuilderRef struct { |
| + Module string |
| + Name string |
| + Category string // TODO(hinoka): This should be a list? |
| + ShortName string |
| +} |
| + |
| +type CommitBuild struct { |
| + Commit |
| + Build []*ConsoleBuild |
| +} |
| + |
| +type BuilderGroup struct { |
| + FullPath string |
| + Label string |
| + Decendents int |
| + Parent *BuilderGroup |
| + Children []*BuilderGroup |
| + Builders []ConsoleBuilder |
| +} |
| + |
| +type ConsoleBuilder struct { |
| + ShortName string |
| + Label Link |
| + // Most recent finished build status. |
| + Status Status |
| +} |
| + |
| +type ConsoleBuild struct { |
| + // Link to the build. Alt-text goes on the Label of the link |
| + Link *Link |
| + |
| + // Status of the build. |
| + Status Status |
| +} |