Documentation
¶
Overview ¶
Package probe verifies connectivity to aiscan's external dependencies (cyberhub, recon providers, search, IOA, and the LLM) using a supplied config. Probe failures are reported inside the result structs rather than as returned errors; a returned error only signals an unknown/untestable section.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( FofaInfoEndpoint = "https://fofa.info/api/v1/info/my" HunterSearchEndpoint = "https://hunter.qianxin.com/openApi/search" )
Recon provider endpoints. Declared as vars (not consts) so tests can point them at a local stub server.
Functions ¶
func TestConn ¶
func TestConn(ctx context.Context, section string, in, stored *types.DistributeConfig) ([]*types.ConnectionCheck, error)
TestConn probes the external dependencies of one settings section using the supplied (possibly partial) config. Secret fields left blank fall back to the value already stored on the server (stored), mirroring the settings UI convention where a configured secret is left empty to keep it unchanged. Like TestLLM, probe failures are reported inside ConnCheck rather than as a returned error; a non-nil error only signals an unknown/untestable section.
Types ¶
This section is empty.