Documentation
¶
Overview ¶
Package page holds the request and answer shape of a bounded list. It is a leaf package so the store, the domain packages and the API can all name a page without importing one another.
Index ¶
Constants ¶
View Source
const ( DefaultLimit = 50 MaxLimit = 200 )
DefaultLimit and MaxLimit bound a paged list: a caller that asks for nothing gets fifty, and nobody gets more than two hundred in one call, so no request can pull a whole tenant's rows at once.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opts ¶
Opts asks for one page. Cursor is the NextCursor of the previous page, or empty for the first. Pages run newest first: ids are time-ordered, and the cursor is the id the previous page ended on.
Click to show internal directories.
Click to hide internal directories.