Expand description
Cursor-based pagination helpers.
All list endpoints in atrg use cursor-based pagination with the format:
?cursor=<opaque>&limit=<n> and return {"items": [...], "cursor": "<next>"}.
Structs§
- Pagination
Params - Pagination query parameters accepted by list endpoints.
Constants§
- DEFAULT_
LIMIT - Default items per page.
- MAX_
LIMIT - Maximum items per page.
Functions§
- decode_
cursor - Decode a cursor into (timestamp_ms, rkey).
- encode_
cursor - Encode a cursor from a timestamp and record key.
- paginated_
response - Build a paginated JSON response.