pagination

package
v0.20.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

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 (*DefaultPageNumberPaginationAutoPager[T]) Index

func (*DefaultPageNumberPaginationAutoPager[T]) Next

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL