pagination

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DimensionValuesPage

type DimensionValuesPage[T any] struct {
	Values     []T    `json:"values"`
	NextCursor string `json:"next_cursor" api:"nullable"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Values      respjson.Field
		NextCursor  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*DimensionValuesPage[T]) GetNextPage

func (r *DimensionValuesPage[T]) GetNextPage() (res *DimensionValuesPage[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 (DimensionValuesPage[T]) RawJSON

func (r DimensionValuesPage[T]) RawJSON() string

Returns the unmodified JSON received from the API

func (*DimensionValuesPage[T]) SetPageConfig

func (r *DimensionValuesPage[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)

func (*DimensionValuesPage[T]) UnmarshalJSON

func (r *DimensionValuesPage[T]) UnmarshalJSON(data []byte) error

type DimensionValuesPageAutoPager

type DimensionValuesPageAutoPager[T any] struct {
	// contains filtered or unexported fields
}

func NewDimensionValuesPageAutoPager

func NewDimensionValuesPageAutoPager[T any](page *DimensionValuesPage[T], err error) *DimensionValuesPageAutoPager[T]

func (*DimensionValuesPageAutoPager[T]) Current

func (r *DimensionValuesPageAutoPager[T]) Current() T

func (*DimensionValuesPageAutoPager[T]) Err

func (r *DimensionValuesPageAutoPager[T]) Err() error

func (*DimensionValuesPageAutoPager[T]) Index

func (r *DimensionValuesPageAutoPager[T]) Index() int

func (*DimensionValuesPageAutoPager[T]) Next

func (r *DimensionValuesPageAutoPager[T]) Next() bool

type ErrorsPage

type ErrorsPage[T any] struct {
	Errors     []T    `json:"errors"`
	NextCursor string `json:"next_cursor" api:"nullable"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Errors      respjson.Field
		NextCursor  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*ErrorsPage[T]) GetNextPage

func (r *ErrorsPage[T]) GetNextPage() (res *ErrorsPage[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 (ErrorsPage[T]) RawJSON

func (r ErrorsPage[T]) RawJSON() string

Returns the unmodified JSON received from the API

func (*ErrorsPage[T]) SetPageConfig

func (r *ErrorsPage[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)

func (*ErrorsPage[T]) UnmarshalJSON

func (r *ErrorsPage[T]) UnmarshalJSON(data []byte) error

type ErrorsPageAutoPager

type ErrorsPageAutoPager[T any] struct {
	// contains filtered or unexported fields
}

func NewErrorsPageAutoPager

func NewErrorsPageAutoPager[T any](page *ErrorsPage[T], err error) *ErrorsPageAutoPager[T]

func (*ErrorsPageAutoPager[T]) Current

func (r *ErrorsPageAutoPager[T]) Current() T

func (*ErrorsPageAutoPager[T]) Err

func (r *ErrorsPageAutoPager[T]) Err() error

func (*ErrorsPageAutoPager[T]) Index

func (r *ErrorsPageAutoPager[T]) Index() int

func (*ErrorsPageAutoPager[T]) Next

func (r *ErrorsPageAutoPager[T]) Next() bool

type EventsPage

type EventsPage[T any] struct {
	Events     []T    `json:"events"`
	NextCursor string `json:"next_cursor" api:"nullable"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Events      respjson.Field
		NextCursor  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*EventsPage[T]) GetNextPage

func (r *EventsPage[T]) GetNextPage() (res *EventsPage[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 (EventsPage[T]) RawJSON

func (r EventsPage[T]) RawJSON() string

Returns the unmodified JSON received from the API

func (*EventsPage[T]) SetPageConfig

func (r *EventsPage[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)

func (*EventsPage[T]) UnmarshalJSON

func (r *EventsPage[T]) UnmarshalJSON(data []byte) error

type EventsPageAutoPager

type EventsPageAutoPager[T any] struct {
	// contains filtered or unexported fields
}

func NewEventsPageAutoPager

func NewEventsPageAutoPager[T any](page *EventsPage[T], err error) *EventsPageAutoPager[T]

func (*EventsPageAutoPager[T]) Current

func (r *EventsPageAutoPager[T]) Current() T

func (*EventsPageAutoPager[T]) Err

func (r *EventsPageAutoPager[T]) Err() error

func (*EventsPageAutoPager[T]) Index

func (r *EventsPageAutoPager[T]) Index() int

func (*EventsPageAutoPager[T]) Next

func (r *EventsPageAutoPager[T]) Next() bool

type VideosPage

type VideosPage[T any] struct {
	Videos     []T    `json:"videos"`
	NextCursor string `json:"next_cursor" api:"nullable"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Videos      respjson.Field
		NextCursor  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*VideosPage[T]) GetNextPage

func (r *VideosPage[T]) GetNextPage() (res *VideosPage[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 (VideosPage[T]) RawJSON

func (r VideosPage[T]) RawJSON() string

Returns the unmodified JSON received from the API

func (*VideosPage[T]) SetPageConfig

func (r *VideosPage[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)

func (*VideosPage[T]) UnmarshalJSON

func (r *VideosPage[T]) UnmarshalJSON(data []byte) error

type VideosPageAutoPager

type VideosPageAutoPager[T any] struct {
	// contains filtered or unexported fields
}

func NewVideosPageAutoPager

func NewVideosPageAutoPager[T any](page *VideosPage[T], err error) *VideosPageAutoPager[T]

func (*VideosPageAutoPager[T]) Current

func (r *VideosPageAutoPager[T]) Current() T

func (*VideosPageAutoPager[T]) Err

func (r *VideosPageAutoPager[T]) Err() error

func (*VideosPageAutoPager[T]) Index

func (r *VideosPageAutoPager[T]) Index() int

func (*VideosPageAutoPager[T]) Next

func (r *VideosPageAutoPager[T]) Next() bool

type ViewsPage

type ViewsPage[T any] struct {
	Views      []T    `json:"views"`
	NextCursor string `json:"next_cursor" api:"nullable"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Views       respjson.Field
		NextCursor  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*ViewsPage[T]) GetNextPage

func (r *ViewsPage[T]) GetNextPage() (res *ViewsPage[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 (ViewsPage[T]) RawJSON

func (r ViewsPage[T]) RawJSON() string

Returns the unmodified JSON received from the API

func (*ViewsPage[T]) SetPageConfig

func (r *ViewsPage[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response)

func (*ViewsPage[T]) UnmarshalJSON

func (r *ViewsPage[T]) UnmarshalJSON(data []byte) error

type ViewsPageAutoPager

type ViewsPageAutoPager[T any] struct {
	// contains filtered or unexported fields
}

func NewViewsPageAutoPager

func NewViewsPageAutoPager[T any](page *ViewsPage[T], err error) *ViewsPageAutoPager[T]

func (*ViewsPageAutoPager[T]) Current

func (r *ViewsPageAutoPager[T]) Current() T

func (*ViewsPageAutoPager[T]) Err

func (r *ViewsPageAutoPager[T]) Err() error

func (*ViewsPageAutoPager[T]) Index

func (r *ViewsPageAutoPager[T]) Index() int

func (*ViewsPageAutoPager[T]) Next

func (r *ViewsPageAutoPager[T]) Next() bool

Jump to

Keyboard shortcuts

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