pagination

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 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.31.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.31.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.31.0

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

Returns the unmodified JSON received from the API

func (*OffsetPageCDN[T]) SetPageConfig added in v0.31.0

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

func (*OffsetPageCDN[T]) UnmarshalJSON added in v0.31.0

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

type OffsetPageCDNAutoPager added in v0.31.0

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

func NewOffsetPageCDNAutoPager added in v0.31.0

func NewOffsetPageCDNAutoPager[T any](page *OffsetPageCDN[T], err error) *OffsetPageCDNAutoPager[T]

func (*OffsetPageCDNAutoPager[T]) Current added in v0.31.0

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

func (*OffsetPageCDNAutoPager[T]) Err added in v0.31.0

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

func (*OffsetPageCDNAutoPager[T]) Index added in v0.31.0

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

func (*OffsetPageCDNAutoPager[T]) Next added in v0.31.0

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

type OffsetPageCDNLogs added in v0.31.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.31.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.31.0

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

Returns the unmodified JSON received from the API

func (*OffsetPageCDNLogs[T]) SetPageConfig added in v0.31.0

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

func (*OffsetPageCDNLogs[T]) UnmarshalJSON added in v0.31.0

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

type OffsetPageCDNLogsAutoPager added in v0.31.0

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

func NewOffsetPageCDNLogsAutoPager added in v0.31.0

func NewOffsetPageCDNLogsAutoPager[T any](page *OffsetPageCDNLogs[T], err error) *OffsetPageCDNLogsAutoPager[T]

func (*OffsetPageCDNLogsAutoPager[T]) Current added in v0.31.0

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

func (*OffsetPageCDNLogsAutoPager[T]) Err added in v0.31.0

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

func (*OffsetPageCDNLogsAutoPager[T]) Index added in v0.31.0

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

func (*OffsetPageCDNLogsAutoPager[T]) Next added in v0.31.0

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

type OffsetPageCDNLogsMeta added in v0.31.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.31.0

func (r OffsetPageCDNLogsMeta) RawJSON() string

Returns the unmodified JSON received from the API

func (*OffsetPageCDNLogsMeta) UnmarshalJSON added in v0.31.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