Exemple #1
0
func restGetNodeStats(m *model.Model, w http.ResponseWriter, r *http.Request) {
	var res = m.NodeStatistics()
	w.Header().Set("Content-Type", "application/json; charset=utf-8")
	json.NewEncoder(w).Encode(res)
}