package
0.0.0-20240909034204-207f58c0b9a3
Repository: https://github.com/chnsz/golangsdk.git
Documentation: pkg.go.dev
# Packages
pagination.
# Functions
ListAllItems is the method to get all pages from initialURL.
NewPager constructs a manually-configured pager.
PageResultFrom parses an HTTP response as JSON and returns a PageResult containing the results, interpreting it as JSON if the content type indicates.
PageResultFromParsed constructs a PageResult from an HTTP response that has already had its body parsed as JSON (and closed).
Request performs an HTTP request and extracts the http.Response from the result.
# Variables
ErrPageNotAvailable is returned from a Pager when a next or previous page is requested, but does not exist.
the maximum pager is 1000.
# Structs
LinkedPageBase may be embedded to implement a page that provides navigational "Next" and "Previous" links within its result.
MarkerPageBase is a page in a collection that's paginated by "limit" and "marker" query parameters.
OffsetPageBase is used for paging queries based on offset and limit.
Pager knows how to advance through a specific resource collection, one page at a time.
PageResult stores the HTTP response that returned the current page of results.
PageSizeBase is used for paging queries based on "page" and "pageSize".
QueryOpts is the operation for ListAllItems currently, you can change the default marker field with `MarkerField`.
# Interfaces
MarkerPage is a stricter Page interface that describes additional functionality required for use with NewMarkerPager.
OffsetPage is used for paging queries based on offset and limit.
Page must be satisfied by the result type of any resource collection.
# Type aliases
SinglePageBase may be embedded in a Page that contains all of the results from an operation at once.