Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultPageNumberPagination ¶
type DefaultPageNumberPagination[T any] struct { Items []T `json:"items"` JSON defaultPageNumberPaginationJSON `json:"-"` // contains filtered or unexported fields }
func (*DefaultPageNumberPagination[T]) GetNextPage ¶
func (r *DefaultPageNumberPagination[T]) GetNextPage() (res *DefaultPageNumberPagination[T], err error)
GetNextPage returns the next page as defined by this pagination style. When there is no next page, this function will return a 'nil' for the page value, but will not return an error
func (*DefaultPageNumberPagination[T]) SetPageConfig ¶
func (r *DefaultPageNumberPagination[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)
func (*DefaultPageNumberPagination[T]) UnmarshalJSON ¶
func (r *DefaultPageNumberPagination[T]) UnmarshalJSON(data []byte) (err error)
type DefaultPageNumberPaginationAutoPager ¶
type DefaultPageNumberPaginationAutoPager[T any] struct { // contains filtered or unexported fields }
func NewDefaultPageNumberPaginationAutoPager ¶
func NewDefaultPageNumberPaginationAutoPager[T any](page *DefaultPageNumberPagination[T], err error) *DefaultPageNumberPaginationAutoPager[T]
func (*DefaultPageNumberPaginationAutoPager[T]) Current ¶
func (r *DefaultPageNumberPaginationAutoPager[T]) Current() T
func (*DefaultPageNumberPaginationAutoPager[T]) Err ¶
func (r *DefaultPageNumberPaginationAutoPager[T]) Err() error
func (*DefaultPageNumberPaginationAutoPager[T]) Index ¶
func (r *DefaultPageNumberPaginationAutoPager[T]) Index() int
func (*DefaultPageNumberPaginationAutoPager[T]) Next ¶
func (r *DefaultPageNumberPaginationAutoPager[T]) Next() bool
Click to show internal directories.
Click to hide internal directories.