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

Method DoRuntime

internal/nodeapi/api.go:66–75  ·  view source on GitHub ↗

DoRuntime 返回核心运行时信息。

(ctx context.Context)

Source from the content-addressed store, hash-verified

64
65// DoRuntime 返回核心运行时信息。
66func (a *API) DoRuntime(ctx context.Context) map[string]any {
67info := a.activeManager().RuntimeInfo(ctx)
68return map[string]any{
69"available": info.Available,
70"module": info.Module,
71"version": info.Version,
72"last_error": info.LastError,
73"node_version": buildinfo.Version,
74}
75}
76
77// DoStatus 返回核心运行状态。
78func (a *API) DoStatus() coremanager.Status { return a.activeManager().Status() }

Callers 1

HandleMethod · 0.80

Calls 2

activeManagerMethod · 0.95
RuntimeInfoMethod · 0.65

Tested by

no test coverage detected