{"modulePath":"github.com/xmapst/taskflow","version":"v0.0.0-20261127030116-2fa33bcfeb3e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package system\n\n## Types\n\n```go\ntype Handler struct{}\n```\nHandler implements system endpoints.\n\n```go\nfunc (h *Handler) GetSystemConfig(w http.ResponseWriter, r *http.Request)\n```\nGetSystemConfig 返回已应用的工作池大小及本机资源指标。 @Summary 获取系统状态 @Description 返回已生效的工作池大小及 CPU、内存、磁盘指标。容量单位为字节，使用率为百分比，无法读取的指标为 null。实时指标订阅走 /api/v1/ws 的 system 主题。 @Tags 系统 @Produce application/json,application/yaml @Success 200 {object} api.Response\\[iproto.SSystemConfig] @Failure 503 {string} string \"工作池查询不可用或超时\" @Router /api/v1/system \\[get]\n\n```go\nfunc (h *Handler) RegisterStream(reg *httpx.StreamRegistry)\n```\nRegisterStream exposes the resource metrics as the \"system\" topic and the pool resize as the \"system.update\" method.\n\n","path":"github.com/xmapst/taskflow/internal/server/handler/system","name":"system","synopsis":"","isRedistributable":true}
