cursors

package
v0.0.0-...-d0884dd Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Iterator

func Iterator[C any, T Iterable[C], Q IsQuery](
	ctx context.Context,
	request func(ctx context.Context, opts Q) (T, error),
	initialOpts Q,
) iter.Seq2[C, error]

Types

type Collectionable

type Collectionable[C any] interface {
	Collection() []C
}

type IsQuery

type IsQuery interface {
	ToQueryString() (string, error)
	SetCursor(cursor *string)
}

type Iterable

type Iterable[C any] interface {
	Nextable
	Collectionable[C]
}

type Nextable

type Nextable interface {
	Next() *string
}

Jump to

Keyboard shortcuts

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