func (vs *VolumeServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) {
	infos := make(map[string]interface{})
	infos["Version"] = util.VERSION
	infos["Up Time"] = util.FormatDuration(time.Now().Sub(startTime))
	var ds []*stats.DiskStatus
	for _, loc := range vs.store.Locations {
		if dir, e := filepath.Abs(loc.Directory); e == nil {
			ds = append(ds, stats.NewDiskStatus(dir))
		}
	}
	args := struct {
		Version      string
		Master       string
		Volumes      interface{}
		DiskStatuses interface{}
		Stats        interface{}
		Counters     *stats.ServerStats
	}{
		Version:      util.VERSION,
		Master:       vs.GetMasterNode(),
		Volumes:      vs.store.Status(),
		DiskStatuses: ds,
		Stats:        infos,
		Counters:     stats.ServStats,
	}
	ui.StatusTpl.Execute(w, args)
}
func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) {
	infos := make(map[string]interface{})
	infos["Version"] = util.VERSION
	infos["Up Time"] = util.FormatDuration(time.Now().Sub(startTime))
	args := struct {
		Version  string
		Topology interface{}
		Leader   string
		Peers    interface{}
		Stats    map[string]interface{}
		Counters *stats.ServerStats
	}{
		Version:  util.VERSION,
		Topology: ms.Topo.ToMap(),
		Leader:   ms.Topo.GetRaftServer().Leader(),
		Peers:    ms.Topo.GetRaftServer().Peers(),
		Stats:    infos,
		Counters: stats.ServStats,
	}
	ui.StatusTpl.Execute(w, args)
}