The new design defines 4 distinct functions, List, ListPage, ListRefresh and ListRefreshPage. The first two are used during the initial pagination, and the other two are used during refreshing.
Boundary list pagination logic
This package encapsulates the logic used to attempt to fill every page in a request to a Boundary list endpoint. For example use, see example_test.go.