Help us shape the future of Go! Take the 2026 Go Developer Survey

paginate

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Deprecated: Use the github.com/stackitcloud/stackit-sdk-go/core/experimental/paginate package from the STACKIT SDK core module instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All deprecated

func All[
	Item any,
	Resp Response[Item],
	Req Request[Req, Resp],
](request Req, opts ...Option) ([]Item, error)

Deprecated: Use the github.com/stackitcloud/stackit-sdk-go/core/experimental/paginate package from the STACKIT SDK core module instead.

func Items deprecated

func Items[
	Item any,
	Resp Response[Item],
	Req Request[Req, Resp],
](request Req, opts ...Option) iter.Seq2[Item, error]

Deprecated: Use the github.com/stackitcloud/stackit-sdk-go/core/experimental/paginate package from the STACKIT SDK core module instead.

Types

type Option deprecated

type Option func(*config) error

Deprecated: Use the github.com/stackitcloud/stackit-sdk-go/core/experimental/paginate package from the STACKIT SDK core module instead.

func WithLimit deprecated

func WithLimit(limit int) Option

Deprecated: Use the github.com/stackitcloud/stackit-sdk-go/core/experimental/paginate package from the STACKIT SDK core module instead.

func WithMaxPages deprecated

func WithMaxPages(maxPages int) Option

Deprecated: Use the github.com/stackitcloud/stackit-sdk-go/core/experimental/paginate package from the STACKIT SDK core module instead.

func WithPageSize deprecated

func WithPageSize(pageSize int32) Option

Deprecated: Use the github.com/stackitcloud/stackit-sdk-go/core/experimental/paginate package from the STACKIT SDK core module instead.

type Request deprecated

type Request[Self, Resp any] interface {
	PageSize(pageSize int32) Self
	PageToken(pageToken string) Self
	Execute() (Resp, error)
}

Deprecated: Use the github.com/stackitcloud/stackit-sdk-go/core/experimental/paginate package from the STACKIT SDK core module instead.

type Response deprecated

type Response[Item any] interface {
	GetItems() []Item
	GetNextPageToken() string
}

Deprecated: Use the github.com/stackitcloud/stackit-sdk-go/core/experimental/paginate package from the STACKIT SDK core module instead.

Jump to

Keyboard shortcuts

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