[ui] add ui to status page

This commit is contained in:
chrislusf
2015-03-24 10:52:14 -07:00
parent b113760cf4
commit f56339f38d
2 changed files with 6 additions and 0 deletions

View File

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