Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: appengine/cmd/milo/resp/console.go

Issue 2196453002: Milo: Console view prototype (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Rebase fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+}

Powered by Google App Engine
This is Rietveld 408576698