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 ¶
Click to show internal directories.
Click to hide internal directories.