pagination

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OffsetPage

type OffsetPage[T any] struct {
	Results []T   `json:"results"`
	Count   int64 `json:"count"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Results     respjson.Field
		Count       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*OffsetPage[T]) GetNextPage

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

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

Returns the unmodified JSON received from the API

func (*OffsetPage[T]) SetPageConfig

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

func (*OffsetPage[T]) UnmarshalJSON

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

type OffsetPageAutoPager

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

func NewOffsetPageAutoPager

func NewOffsetPageAutoPager[T any](page *OffsetPage[T], err error) *OffsetPageAutoPager[T]

func (*OffsetPageAutoPager[T]) Current

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

func (*OffsetPageAutoPager[T]) Err

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

func (*OffsetPageAutoPager[T]) Index

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

func (*OffsetPageAutoPager[T]) Next

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

type OffsetPageCdn added in v0.14.0

type OffsetPageCdn[T any] struct {
	Items []T `json:",inline"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*OffsetPageCdn[T]) GetNextPage added in v0.14.0

func (r *OffsetPageCdn[T]) GetNextPage() (res *OffsetPageCdn[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 (OffsetPageCdn[T]) RawJSON added in v0.14.0

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

Returns the unmodified JSON received from the API

func (*OffsetPageCdn[T]) SetPageConfig added in v0.14.0

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

func (*OffsetPageCdn[T]) UnmarshalJSON added in v0.14.0

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

type OffsetPageCdnAutoPager added in v0.14.0

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

func NewOffsetPageCdnAutoPager added in v0.14.0

func NewOffsetPageCdnAutoPager[T any](page *OffsetPageCdn[T], err error) *OffsetPageCdnAutoPager[T]

func (*OffsetPageCdnAutoPager[T]) Current added in v0.14.0

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

func (*OffsetPageCdnAutoPager[T]) Err added in v0.14.0

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

func (*OffsetPageCdnAutoPager[T]) Index added in v0.14.0

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

func (*OffsetPageCdnAutoPager[T]) Next added in v0.14.0

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

type OffsetPageCdnLogs added in v0.14.0

type OffsetPageCdnLogs[T any] struct {
	Data []T                   `json:"data"`
	Meta OffsetPageCdnLogsMeta `json:"meta"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Data        respjson.Field
		Meta        respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*OffsetPageCdnLogs[T]) GetNextPage added in v0.14.0

func (r *OffsetPageCdnLogs[T]) GetNextPage() (res *OffsetPageCdnLogs[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 (OffsetPageCdnLogs[T]) RawJSON added in v0.14.0

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

Returns the unmodified JSON received from the API

func (*OffsetPageCdnLogs[T]) SetPageConfig added in v0.14.0

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

func (*OffsetPageCdnLogs[T]) UnmarshalJSON added in v0.14.0

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

type OffsetPageCdnLogsAutoPager added in v0.14.0

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

func NewOffsetPageCdnLogsAutoPager added in v0.14.0

func NewOffsetPageCdnLogsAutoPager[T any](page *OffsetPageCdnLogs[T], err error) *OffsetPageCdnLogsAutoPager[T]

func (*OffsetPageCdnLogsAutoPager[T]) Current added in v0.14.0

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

func (*OffsetPageCdnLogsAutoPager[T]) Err added in v0.14.0

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

func (*OffsetPageCdnLogsAutoPager[T]) Index added in v0.14.0

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

func (*OffsetPageCdnLogsAutoPager[T]) Next added in v0.14.0

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

type OffsetPageCdnLogsMeta added in v0.14.0

type OffsetPageCdnLogsMeta struct {
	Count int64 `json:"count"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Count       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (OffsetPageCdnLogsMeta) RawJSON added in v0.14.0

func (r OffsetPageCdnLogsMeta) RawJSON() string

Returns the unmodified JSON received from the API

func (*OffsetPageCdnLogsMeta) UnmarshalJSON added in v0.14.0

func (r *OffsetPageCdnLogsMeta) UnmarshalJSON(data []byte) error

type OffsetPageFastedgeAppLogs added in v0.5.0

type OffsetPageFastedgeAppLogs[T any] struct {
	Logs       []T   `json:"logs"`
	TotalCount int64 `json:"total_count"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Logs        respjson.Field
		TotalCount  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*OffsetPageFastedgeAppLogs[T]) GetNextPage added in v0.5.0

func (r *OffsetPageFastedgeAppLogs[T]) GetNextPage() (res *OffsetPageFastedgeAppLogs[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 (OffsetPageFastedgeAppLogs[T]) RawJSON added in v0.5.0

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

Returns the unmodified JSON received from the API

func (*OffsetPageFastedgeAppLogs[T]) SetPageConfig added in v0.5.0

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

func (*OffsetPageFastedgeAppLogs[T]) UnmarshalJSON added in v0.5.0

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

type OffsetPageFastedgeAppLogsAutoPager added in v0.5.0

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

func NewOffsetPageFastedgeAppLogsAutoPager added in v0.5.0

func NewOffsetPageFastedgeAppLogsAutoPager[T any](page *OffsetPageFastedgeAppLogs[T], err error) *OffsetPageFastedgeAppLogsAutoPager[T]

func (*OffsetPageFastedgeAppLogsAutoPager[T]) Current added in v0.5.0

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

func (*OffsetPageFastedgeAppLogsAutoPager[T]) Err added in v0.5.0

func (*OffsetPageFastedgeAppLogsAutoPager[T]) Index added in v0.5.0

func (*OffsetPageFastedgeAppLogsAutoPager[T]) Next added in v0.5.0

type OffsetPageFastedgeApps added in v0.5.0

type OffsetPageFastedgeApps[T any] struct {
	Apps  []T   `json:"apps"`
	Count int64 `json:"count"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Apps        respjson.Field
		Count       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*OffsetPageFastedgeApps[T]) GetNextPage added in v0.5.0

func (r *OffsetPageFastedgeApps[T]) GetNextPage() (res *OffsetPageFastedgeApps[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 (OffsetPageFastedgeApps[T]) RawJSON added in v0.5.0

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

Returns the unmodified JSON received from the API

func (*OffsetPageFastedgeApps[T]) SetPageConfig added in v0.5.0

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

func (*OffsetPageFastedgeApps[T]) UnmarshalJSON added in v0.5.0

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

type OffsetPageFastedgeAppsAutoPager added in v0.5.0

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

func NewOffsetPageFastedgeAppsAutoPager added in v0.5.0

func NewOffsetPageFastedgeAppsAutoPager[T any](page *OffsetPageFastedgeApps[T], err error) *OffsetPageFastedgeAppsAutoPager[T]

func (*OffsetPageFastedgeAppsAutoPager[T]) Current added in v0.5.0

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

func (*OffsetPageFastedgeAppsAutoPager[T]) Err added in v0.5.0

func (*OffsetPageFastedgeAppsAutoPager[T]) Index added in v0.5.0

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

func (*OffsetPageFastedgeAppsAutoPager[T]) Next added in v0.5.0

type OffsetPageFastedgeTemplates added in v0.5.0

type OffsetPageFastedgeTemplates[T any] struct {
	Templates []T   `json:"templates"`
	Count     int64 `json:"count"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Templates   respjson.Field
		Count       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*OffsetPageFastedgeTemplates[T]) GetNextPage added in v0.5.0

func (r *OffsetPageFastedgeTemplates[T]) GetNextPage() (res *OffsetPageFastedgeTemplates[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 (OffsetPageFastedgeTemplates[T]) RawJSON added in v0.5.0

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

Returns the unmodified JSON received from the API

func (*OffsetPageFastedgeTemplates[T]) SetPageConfig added in v0.5.0

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

func (*OffsetPageFastedgeTemplates[T]) UnmarshalJSON added in v0.5.0

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

type OffsetPageFastedgeTemplatesAutoPager added in v0.5.0

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

func NewOffsetPageFastedgeTemplatesAutoPager added in v0.5.0

func NewOffsetPageFastedgeTemplatesAutoPager[T any](page *OffsetPageFastedgeTemplates[T], err error) *OffsetPageFastedgeTemplatesAutoPager[T]

func (*OffsetPageFastedgeTemplatesAutoPager[T]) Current added in v0.5.0

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

func (*OffsetPageFastedgeTemplatesAutoPager[T]) Err added in v0.5.0

func (*OffsetPageFastedgeTemplatesAutoPager[T]) Index added in v0.5.0

func (*OffsetPageFastedgeTemplatesAutoPager[T]) Next added in v0.5.0

type PageStreaming added in v0.7.0

type PageStreaming[T any] struct {
	Items []T `json:",inline"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*PageStreaming[T]) GetNextPage added in v0.7.0

func (r *PageStreaming[T]) GetNextPage() (res *PageStreaming[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 (PageStreaming[T]) RawJSON added in v0.7.0

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

Returns the unmodified JSON received from the API

func (*PageStreaming[T]) SetPageConfig added in v0.7.0

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

func (*PageStreaming[T]) UnmarshalJSON added in v0.7.0

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

type PageStreamingAI added in v0.7.0

type PageStreamingAI[T any] struct {
	Results []T `json:"results"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Results     respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
	// contains filtered or unexported fields
}

func (*PageStreamingAI[T]) GetNextPage added in v0.7.0

func (r *PageStreamingAI[T]) GetNextPage() (res *PageStreamingAI[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 (PageStreamingAI[T]) RawJSON added in v0.7.0

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

Returns the unmodified JSON received from the API

func (*PageStreamingAI[T]) SetPageConfig added in v0.7.0

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

func (*PageStreamingAI[T]) UnmarshalJSON added in v0.7.0

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

type PageStreamingAIAutoPager added in v0.7.0

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

func NewPageStreamingAIAutoPager added in v0.7.0

func NewPageStreamingAIAutoPager[T any](page *PageStreamingAI[T], err error) *PageStreamingAIAutoPager[T]

func (*PageStreamingAIAutoPager[T]) Current added in v0.7.0

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

func (*PageStreamingAIAutoPager[T]) Err added in v0.7.0

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

func (*PageStreamingAIAutoPager[T]) Index added in v0.7.0

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

func (*PageStreamingAIAutoPager[T]) Next added in v0.7.0

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

type PageStreamingAutoPager added in v0.7.0

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

func NewPageStreamingAutoPager added in v0.7.0

func NewPageStreamingAutoPager[T any](page *PageStreaming[T], err error) *PageStreamingAutoPager[T]

func (*PageStreamingAutoPager[T]) Current added in v0.7.0

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

func (*PageStreamingAutoPager[T]) Err added in v0.7.0

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

func (*PageStreamingAutoPager[T]) Index added in v0.7.0

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

func (*PageStreamingAutoPager[T]) Next added in v0.7.0

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

Jump to

Keyboard shortcuts

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