page

package
v0.3.0-20260807201250-... Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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