Versions in this module Expand all Collapse all v1 v1.0.1 Mar 12, 2025 v1.0.0 Mar 5, 2024 Changes in this version + var ErrStopPagination = errors.New("stop pagination") + func ShouldStop(err error) bool + type AsyncPaginationRawDriver struct + func NewAsyncPaginationRawDriver(handler asyncPaginationRawHandler) *AsyncPaginationRawDriver + func (d *AsyncPaginationRawDriver) OnBadResponse(resp *http.Response, err error) + func (d *AsyncPaginationRawDriver) OnFinish(resp *http.Response, pageCount int) error + func (d *AsyncPaginationRawDriver) OnNextRequest(request *http.Request, pageCount int) error + func (d *AsyncPaginationRawDriver) OnNextResponse(resp *http.Response, nextRequest *http.Request, pageCount int) (err error) + type Driver interface + OnBadResponse func(resp *http.Response, err error) + OnFinish func(resp *http.Response, pageCount int) error + OnNextRequest func(request *http.Request, pageCount int) error + OnNextResponse func(resp *http.Response, nextRequest *http.Request, pageCount int) error + type GithubAsyncPaginationDriver struct + func NewGithubAsyncPaginationDriver[DataType any](handler githubAsyncPaginationHandler[DataType], isSearchResponse bool) *GithubAsyncPaginationDriver[DataType] + type SyncPaginationDriver struct + func NewSyncPaginationDriver() *SyncPaginationDriver + func (d *SyncPaginationDriver) OnBadResponse(resp *http.Response, err error) + func (d *SyncPaginationDriver) OnFinish(resp *http.Response, pageCount int) error + func (d *SyncPaginationDriver) OnNextRequest(request *http.Request, pageCount int) error + func (d *SyncPaginationDriver) OnNextResponse(resp *http.Response, nextRequest *http.Request, pageCount int) error