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 + func NewClient(base http.RoundTripper, opts ...Option) *http.Client + func WithOverrideConfig(ctx context.Context, opts ...Option) context.Context + type Async struct + OnNext OnNextResponse[DataType] + func NewAsyncSearch[DataType any](onNext OnNextResponse[DataType]) *Async[DataType] + func NewAsync[DataType any](onNext OnNextResponseSlice[DataType]) *Async[DataType] + func (a *Async[DataType]) HandleError(resp *http.Response, err error) + func (a *Async[DataType]) HandleFinish(resp *http.Response, pageCount int) + func (a *Async[DataType]) HandlePage(data *searchresult.Typed[DataType], resp *http.Response) error + func (a *Async[DataType]) Paginate(requestFn any, args ...any) error + type Config struct + DefaultPerPage int + Disabled bool + Driver PaginationDriver + MaxNumOfPages int + func (c *Config) ApplyOptions(opts ...Option) + func (c *Config) GetContextedConfig(ctx context.Context) *Config + func (c *Config) GetDriver() PaginationDriver + func (c *Config) GetRequestConfig(request *http.Request) *Config + func (c *Config) IsPaginationOverflow(pageCount int) bool + func (c *Config) UpdateRequest(request *http.Request) *http.Request + type ConfigOverridesKey struct + type GitHubPagination struct + Base http.RoundTripper + func New(base http.RoundTripper, opts ...Option) *GitHubPagination + func (g *GitHubPagination) RoundTrip(request *http.Request) (*http.Response, error) + type OnNextResponse func(*http.Response, *searchresult.Typed[DataType]) error + type OnNextResponseSlice func(*http.Response, []*DataType) error + type Option func(*Config) + func GetConfigOverrides(ctx context.Context) []Option + func WithDriver(driver drivers.Driver) Option + func WithMaxNumOfPages(maxNumOfPages int) Option + func WithPaginationDisabled() Option + func WithPaginationEnabled() Option + func WithPerPage(perPage int) Option + type PaginationDriver = drivers.Driver