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

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

Issue 2810113002: Milo buildbot builder page: Add pagnation with cursors. (Closed)
Patch Set: train 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
« no previous file with comments | « milo/api/proto/pb.discovery.go ('k') | milo/appengine/buildbot/builder.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/api/resp/builder.go
diff --git a/milo/api/resp/builder.go b/milo/api/resp/builder.go
index 3b25e8fa721caa0c212caa99dcebe10bafbcd9ec..46a30fe42a90870a7e15c6534760eff561072731 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 `json:",omitempty"`
+ // NextCursor is a cursor to the next page.
+ NextCursor string `json:",omitempty"`
}
// MachinePool represents the capacity and availability of a builder.
« no previous file with comments | « milo/api/proto/pb.discovery.go ('k') | milo/appengine/buildbot/builder.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698