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

Method Start

internal/core/engine.go:35–52  ·  view source on GitHub ↗

Start 启动引擎(简化版本)

()

Source from the content-addressed store, hash-verified

33
34// Start 启动引擎(简化版本)
35func (e *Engine) Start() error {
36 e.mu.Lock()
37 defer e.mu.Unlock()
38
39 if e.running {
40 return fmt.Errorf("引擎已在运行")
41 }
42
43 // 启动连接管理器
44 if err := e.connections.Start(); err != nil {
45 return fmt.Errorf("启动连接管理器失败: %v", err)
46 }
47
48 // 缓存管理器已移除
49
50 e.running = true
51 return nil
52}
53
54// Stop 停止引擎(简化版本)
55func (e *Engine) Stop() error {

Callers 1

NewRootCmdFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected