DoRuntime 返回核心运行时信息。
(ctx context.Context)
| 64 | |
| 65 | // DoRuntime 返回核心运行时信息。 |
| 66 | func (a *API) DoRuntime(ctx context.Context) map[string]any { |
| 67 | info := a.activeManager().RuntimeInfo(ctx) |
| 68 | return 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 返回核心运行状态。 |
| 78 | func (a *API) DoStatus() coremanager.Status { return a.activeManager().Status() } |
no test coverage detected