feat(device): 设备端源码独立成 device/,可脱离具体服务器编译运行
- 模块名去掉私有域名(agent-device),import 路径中性化 - 二进制不内置任何服务器地址与 token,-server 必填 - 新增 -config:token 可放 JSON 文件,避免 ps 泄露 - scripts/build.sh 只做本地构建(有 Go 用 Go,没 Go 用 docker 镜像) - README 面向使用者,部署细节不进仓库
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
module agent-device
|
||||
|
||||
go 1.22
|
||||
|
||||
require github.com/gorilla/websocket v1.5.3
|
||||
Reference in New Issue
Block a user