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

Unified Diff: milo/api/resp/builder.go

Issue 2810113002: Milo buildbot builder page: Add pagnation with cursors. (Closed)
Patch Set: Touchups Created 3 years, 8 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: milo/api/resp/builder.go
diff --git a/milo/api/resp/builder.go b/milo/api/resp/builder.go
index 3b25e8fa721caa0c212caa99dcebe10bafbcd9ec..9cc3972b42ec7af19fbb7308445b74157bf557f3 100644
--- a/milo/api/resp/builder.go
+++ b/milo/api/resp/builder.go
@@ -63,6 +63,11 @@ type Builder struct {
// machines that can run in a builder. It has no meaning in buildbucket or dm
// and is expected to be nil.
MachinePool *MachinePool
+
+ // PrevCursor is a cursor to the previous page.
+ PrevCursor string
nodir 2017/04/18 20:27:49 `json:",omitempty"`
hinoka 2017/04/20 21:37:07 Done.
+ // NextCursor is a cursor to the next page.
+ NextCursor string
nodir 2017/04/18 20:27:49 `json:",omitempty"`
hinoka 2017/04/20 21:37:08 Done.
}
// MachinePool represents the capacity and availability of a builder.

Powered by Google App Engine
This is Rietveld 408576698