Documentation
¶
Overview ¶
Package shodan provides a gollem.ToolSet for Shodan internet-facing asset and service lookups (host, domain, search).
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 WithBaseURL ¶
WithBaseURL overrides the Shodan 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()).
type ToolSet ¶
type ToolSet struct {
// contains filtered or unexported fields
}
ToolSet implements gollem.ToolSet for Shodan. 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 querying the well-known Google DNS host (8.8.8.8) via shodan_host.