MCPcopy Create free account
hub / github.com/V2RaySSR/RealityChecker / CheckDomain

Method CheckDomain

internal/core/engine.go:75–81  ·  view source on GitHub ↗

CheckDomain 检测单个域名(直接使用pipeline,简化架构)

(ctx context.Context, domain string)

Source from the content-addressed store, hash-verified

73
74// CheckDomain 检测单个域名(直接使用pipeline,简化架构)
75func (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 批量检测域名(移除并发控制,由调用方管理)
84func (e *Engine) CheckDomains(ctx context.Context, domains []string) ([]*types.DetectionResult, error) {

Callers 2

executeCheckMethod · 0.80

Calls 1

ExecuteMethod · 0.65

Tested by

no test coverage detected