paginater

package
v0.2.2-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryPaginated

func QueryPaginated(ctx context.Context, query paginatedQuery, offset,
	maxEvents uint64) error

QueryPaginated gets calls the paginated query function until it it has retrieved all the items from the query endpoint, or the calling context is cancelled. Note that the query function is responsible for collecting the items returned by the API (if required) so that the pagination logic can remain generic.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL