Documentation
¶
Overview ¶
Package urlscan provides a gollem.ToolSet for scanning URLs via urlscan.io.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*ToolSet)
Option configures a ToolSet.
func WithBackoff ¶
WithBackoff sets the interval between poll attempts while waiting for a scan result to become available. Default is 3 seconds.
func WithBaseURL ¶
WithBaseURL overrides the urlscan.io API base URL.
func WithHTTPClient ¶
WithHTTPClient overrides the HTTP client used for requests.
func WithLogger ¶
WithLogger sets the logger. A nil logger keeps the default (slog.Default()).
func WithTimeout ¶
WithTimeout sets the maximum time to wait for a scan result. Default is 30 seconds.
type ToolSet ¶
type ToolSet struct {
// contains filtered or unexported fields
}
ToolSet implements gollem.ToolSet for urlscan.io. Fields are unexported; configure via Option.
func New ¶
New constructs the ToolSet. It only validates static configuration; use Ping to verify connectivity and credentials.
func (*ToolSet) Ping ¶
Ping verifies connectivity and credentials by performing a minimal authenticated GET against the API root. Any non-5xx response is treated as reachable; only network errors and server-side failures are considered fatal.