NewEngine 创建新的检测引擎(简化版本)
(config *types.Config)
| 20 | |
| 21 | // NewEngine 创建新的检测引擎(简化版本) |
| 22 | func 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 启动引擎(简化版本) |
| 35 | func (e *Engine) Start() error { |
no test coverage detected