|
@ -14,12 +14,14 @@ func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) |
|
|
args := struct { |
|
|
args := struct { |
|
|
Version string |
|
|
Version string |
|
|
Topology interface{} |
|
|
Topology interface{} |
|
|
|
|
|
Leader string |
|
|
Peers interface{} |
|
|
Peers interface{} |
|
|
Stats map[string]interface{} |
|
|
Stats map[string]interface{} |
|
|
Counters *stats.ServerStats |
|
|
Counters *stats.ServerStats |
|
|
}{ |
|
|
}{ |
|
|
util.VERSION, |
|
|
util.VERSION, |
|
|
ms.Topo.ToMap(), |
|
|
ms.Topo.ToMap(), |
|
|
|
|
|
ms.Topo.RaftServer.Leader(), |
|
|
ms.Topo.RaftServer.Peers(), |
|
|
ms.Topo.RaftServer.Peers(), |
|
|
infos, |
|
|
infos, |
|
|
serverStats, |
|
|
serverStats, |
|
|