An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.6% on proxy.golang.org
Top 9.0% forks on proxy.golang.org

proxy.golang.org : github.com/tmobile/depaginator

Package depaginator contains an implementation of a function, Depaginate, that allows iterating over all items in a paginated API. The consuming application needs to pass Depaginate a context.Context, a PageGetter page retriever, and an item Handler, then call Depaginator.Wait on the result; the Depaginator will then take care of the rest, calling the [PageGetter.GetPage] method to retrieve pages of results and the [Handler.Handle] method to handle the found items. Options exist to call a [Starter.Start] method before beginning, [Updater.Update] method when the total number of pages or items is discovered; and [Doner.Done] when the iteration is complete.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/tmobile/depaginator
License: Apache-2.0
Latest release: 3 months ago
First release: almost 5 years ago
Namespace: github.com/tmobile
Stars: 2 on GitHub
Forks: 3 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago

v0.4.0
Published: 3 months ago
Registry - Documentation - Download
v0.3.1
Published: over 1 year ago
Registry - Documentation - Download
v0.3.0
Published: over 1 year ago
Registry - Documentation - Download
v0.2.0
Published: about 2 years ago
Registry - Documentation - Download
v0.1.0
Published: almost 5 years ago
Registry - Documentation - Download