|
|
|
@ -23,6 +23,7 @@ type Syslist struct { |
|
|
|
// 返回的结构
|
|
|
|
type SysInfo struct { |
|
|
|
Addr string `json:"addr"` |
|
|
|
Port string `json:"port"` |
|
|
|
Resp string `json:"resp"` |
|
|
|
} |
|
|
|
|
|
|
|
@ -56,6 +57,7 @@ func SysMonitor(w http.ResponseWriter, r *http.Request) { |
|
|
|
// 构建json结构的字符串
|
|
|
|
sinfo := SysInfo{ |
|
|
|
Addr: sc.Addr, |
|
|
|
Port: sc.Port, |
|
|
|
Resp: resp, |
|
|
|
} |
|
|
|
// 添加到rsdata
|
|
|
|
|