Browse Source

测试获取服务器信息

master
xyiege 5 months ago
parent
commit
cdd4a990e2
  1. 10
      aufs/core/dtmem.go

10
aufs/core/dtmem.go

@ -43,6 +43,16 @@ func Dtmem(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "jsonrpc call faild %v", err)
return
}
// 服务的状态
var scs string
err = client.Call("SysmonitorService.GetSysInfo", args, &scs)
if err != nil {
fmt.Fprintf(w, "jsonrpc call faild %v", err)
return
}
fmt.Printf("scs: %v", scs)
// fmt.Printf("reply: %v", reply)
//replyJson, err := json.Marshal(reply)
// if err != nil {

Loading…
Cancel
Save