Documentation ¶
Overview ¶
Package page provides an utility to fetch paginated resources
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All( httpClient client.HTTPClient, firstPageRequest http.Request, target interface{}, pageLimit int, ) error
All fetches multiple pages given only a request for the first one and unmarshals them into `target`. JSON of each response must be an array and `target` must be a pointer to a slice of the according type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.