Discover Packages
github.com/ajitpratap0/openclaw-cortex
pkg
cursor
package
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Mar 22, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package cursor provides HMAC-signed opaque pagination cursors.
Cursors encode a SKIP offset and are tamper-evident via HMAC-SHA256.
Sign encodes skip as an 8-byte big-endian value, appends a 32-byte HMAC-SHA256
over it, and returns the whole thing as a URL-safe base64 string.
Verify decodes and validates a cursor produced by Sign.
Returns (0, nil) for an empty cursor (first page).
Returns an error if the cursor is malformed or the HMAC is invalid.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.