blob: f78d4ab5d9265d7deb91d8d3c6e40d30786df02a [file] [log] [blame]
Ash Wilsonc8e68872014-09-16 10:36:56 -04001package pagination
2
Ash Wilsonc8e68872014-09-16 10:36:56 -04003// SinglePageBase may be embedded in a Page that contains all of the results from an operation at once.
Ash Wilsonb8b16f82014-10-20 10:19:49 -04004type SinglePageBase PageResult
Ash Wilsonc8e68872014-09-16 10:36:56 -04005
6// NextPageURL always returns "" to indicate that there are no more pages to return.
7func (current SinglePageBase) NextPageURL() (string, error) {
8 return "", nil
9}
Jon Perrittdb319f12015-02-17 19:32:40 -070010
11// GetBody returns the single page's body. This method is needed to satisfy the
12// Page interface.
13func (current SinglePageBase) GetBody() interface{} {
14 return current.Body
15}