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

Function NewEngine

internal/core/engine.go:22–32  ·  view source on GitHub ↗

NewEngine 创建新的检测引擎(简化版本)

(config *types.Config)

Source from the content-addressed store, hash-verified

20
21// NewEngine 创建新的检测引擎(简化版本)
22func NewEngine(config *types.Config) *Engine {
23 engine := &Engine{
24 config: config,
25 }
26
27 // 初始化组件
28 engine.connections = network.NewConnectionManager(config)
29 engine.pipeline = NewPipeline(engine.connections, config)
30
31 return engine
32}
33
34// Start 启动引擎(简化版本)
35func (e *Engine) Start() error {

Callers 2

NewRootCmdFunction · 0.92
StartMethod · 0.92

Calls 2

NewConnectionManagerFunction · 0.92
NewPipelineFunction · 0.85

Tested by

no test coverage detected