Documentation
¶
Overview ¶
Package webserver exposes gocrawl over HTTP: an API to start and inspect crawls, backed by the same runner.Run seam the CLI and MCP server use, plus the embedded single-page app (see assets.go) that drives it from a browser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct {
ID string
Seed string
Status Status
Report *report.Report
Err string
StartedAt time.Time
FinishedAt time.Time
StoreID string // set once the report is saved, so history and job views agree on one ID
// contains filtered or unexported fields
}
Job tracks one in-flight or just-finished crawl started via the web API.
type JobView ¶
type JobView struct {
ID string `json:"id"`
Seed string `json:"seed"`
Status string `json:"status"`
Err string `json:"error,omitempty"`
StartedAt string `json:"started_at,omitempty"`
FinishedAt string `json:"finished_at,omitempty"`
Persisted bool `json:"persisted"`
Report *report.Report `json:"report,omitempty"`
}
JobView is the API representation of a Job.
Click to show internal directories.
Click to hide internal directories.