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

Method DoRestart

internal/nodeapi/api.go:163–169  ·  view source on GitHub ↗

DoRestart 用新配置重启核心。

(config, core string)

Source from the content-addressed store, hash-verified

161
162// DoRestart 用新配置重启核心。
163func (a *API) DoRestart(config, core string) (coremanager.Status, error) {
164mgr := a.managerFor(core)
165if err := mgr.Restart(config); err != nil {
166return coremanager.Status{}, err
167}
168return mgr.Status(), nil
169}
170
171// DoAddUser 校验并热增用户。
172func (a *API) DoAddUser(ctx context.Context, cfg coremanager.UserConfig) error {

Callers 1

HandleMethod · 0.80

Calls 3

managerForMethod · 0.95
RestartMethod · 0.65
StatusMethod · 0.65

Tested by

no test coverage detected