Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PagedParams ¶
type PagedParams struct {
Page, Limit int
}
PagedParams is the struct type for the parameters passed into the pagination function
type Paginator ¶
type Paginator struct {
CurrentPage, PageSize, TotalPages int
Function PaginatorFunction
SkipFirstPage bool
}
Paginator iterates over a given series of pages calling a function each time
func (Paginator) GetAllInParallel ¶
GetAllInParallel gets all remaining pages in parallel batches
type PaginatorFunction ¶
type PaginatorFunction func(PagedParams)
PaginatorFunction is any function that accepts PagedParams and returns a pointer
Click to show internal directories.
Click to hide internal directories.