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).
Click to show internal directories.
Click to hide internal directories.