Documentation
¶
Overview ¶
Package pagecursor encodes opaque keyset pagination tokens for Admin list endpoints. Agent Protocol client search stays limit/offset-only.
Index ¶
Constants ¶
const HeaderNextCursor = "X-Next-Cursor"
HeaderNextCursor is set on Admin list responses when another page exists (len(items) == limit). Clients pass the value back as ?cursor=.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyCursor ¶
KeyCursor resumes a name ASC, id ASC listing (agents: agent_id; registry: tenant_id as the secondary key under system context).
type TimeCursor ¶
TimeCursor resumes a created_at DESC, id DESC listing.
func DecodeTime ¶
func DecodeTime(s string) (TimeCursor, error)
DecodeTime parses a time-ordered cursor. Empty input returns (zero, nil).