page

package
v0.2.0-dev.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 0 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

Overview

Package page defines a generic, cursor-paginated result envelope shared across domains. Producers return one bounded Page at a time; callers walk further by passing the page's NextCursor back to the producing call until it is empty.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page[T any] struct {
	// Items are the elements in this page, in the producer's defined order.
	Items []T
	// NextCursor is an opaque token for fetching the next page, passed back to
	// the producing call. It is empty when this page is the last one. Its
	// encoding is defined and interpreted solely by the producer.
	NextCursor string
}

Page is one bounded slice of a larger sequence, plus an opaque cursor for fetching the next page. The element type T is the domain value being paged (e.g. a commit URI string, or an entity).

Jump to

Keyboard shortcuts

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