1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00

add version, jhl

This commit is contained in:
2020-03-29 21:12:44 +08:00
parent ade9ee7fb0
commit 6635d603f0
5 changed files with 84 additions and 0 deletions

View File

@@ -88,6 +88,13 @@ func serverAPI(w http.ResponseWriter, r *http.Request) {
w.Write(js)
break
case "get_counter":
log.Debug("get_counters")
js, _ := json.Marshal(pool.getCounter())
w.Header().Set("Content-Type", "application/json")
w.Write(js)
break
case "group_list":
log.Debug("group_list")
js, _ := json.Marshal(InstanceOfGroupManager().List())