Documentation
¶
Overview ¶
Package cursor provides a unified cursor encoding/decoding utility for pagination. Cursors are versioned and resource-scoped, allowing different parts of the system to use cursors without collision.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidCursor indicates the cursor is malformed or cannot be decoded. ErrInvalidCursor = errors.New("invalid cursor") // ErrVersionMismatch indicates the cursor version doesn't match the expected version. ErrVersionMismatch = errors.New("cursor version mismatch") )
Functions ¶
func Base62Decode ¶
Base62Decode decodes a base62 string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.