MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / DoStart

Method DoStart

internal/nodeapi/api.go:146–152  ·  view source on GitHub ↗

DoStart 启动核心,返回最新 Status。

(config, core string)

Source from the content-addressed store, hash-verified

144
145// DoStart 启动核心,返回最新 Status。
146func (a *API) DoStart(config, core string) (coremanager.Status, error) {
147mgr := a.managerFor(core)
148if err := mgr.Start(config); err != nil {
149return coremanager.Status{}, err
150}
151return mgr.Status(), nil
152}
153
154// DoStop 停止 xray 核心;如果未运行视为成功。
155func (a *API) DoStop() (coremanager.Status, error) {

Callers 2

HandleMethod · 0.80

Calls 3

managerForMethod · 0.95
StartMethod · 0.65
StatusMethod · 0.65

Tested by 1