probe

package
v1.0.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

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

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL