Documentation
¶
Overview ¶
Package snapshotparse serves deterministic extraction from saved HTML with a receipt for the exact input bytes. Owners provide the parser and auth.
Index ¶
Constants ¶
const ( SchemaVersion = "snapshot.parse.v1" MaxBytes = 8 << 20 Parsed = "parsed" Empty = "empty" NotApplicable = "not_applicable" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Input ¶
Input contains verified, unmodified HTML bytes and their recorded provenance. URL is for evidence and relative link resolution. The handler never fetches it.
type Parser ¶
Parser inspects only the supplied bytes. It should honor cancellation and bound its own work. Errors are reported without disclosing parser internals.
type Result ¶
type Result struct {
Status string `json:"status"`
Data any `json:"data"`
Warnings []string `json:"warnings,omitempty"`
Truncation map[string]bool `json:"truncation,omitempty"`
}
Result holds deterministic signals. Empty means the supplied page had no supported signals. Use NotApplicable when the input cannot support the check.