CheckDomain 检测单个域名(直接使用pipeline,简化架构)
(ctx context.Context, domain string)
| 73 | |
| 74 | // CheckDomain 检测单个域名(直接使用pipeline,简化架构) |
| 75 | func (e *Engine) CheckDomain(ctx context.Context, domain string) (*types.DetectionResult, error) { |
| 76 | if !e.running { |
| 77 | return nil, fmt.Errorf("引擎未运行") |
| 78 | } |
| 79 | |
| 80 | return e.pipeline.Execute(ctx, domain) |
| 81 | } |
| 82 | |
| 83 | // CheckDomains 批量检测域名(移除并发控制,由调用方管理) |
| 84 | func (e *Engine) CheckDomains(ctx context.Context, domains []string) ([]*types.DetectionResult, error) { |
no test coverage detected