Files
xiaozhou233 5b3f40fc7b feat: 后端由 Spring Boot 重写为 Go
- backend: 使用 Go + gopsutil 重写,接口 GET /api/system/stats 结构与前端保持一致
- 内存占用从 ~178MiB 降至 ~4MiB,镜像从 200MB+ 降至 15MB
- Dockerfile 改为多阶段构建,运行镜像使用 distroless
- 前端 os.javaVersion 字段改为 os.goVersion,标签由 Java 改为 Go
- docker-compose: 为 backend 与 frontend 增加 mem_limit
2026-10-06 13:38:25 +08:00

17 lines
535 B
AMPL

module workstation-server
go 1.26.0
require github.com/shirou/gopsutil/v4 v4.26.9
require (
github.com/ebitengine/purego v0.11.1 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/power-devops/perfstat v0.0.0-20260805114148-88456608a4f6 // indirect
github.com/tklauser/go-sysconf v0.4.0 // indirect
github.com/tklauser/numcpus v0.12.0 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
golang.org/x/sys v0.48.0 // indirect
)