(w http.ResponseWriter, r *http.Request)
| 202 | } |
| 203 | |
| 204 | func (h *NodeHandler) handleStatus(w http.ResponseWriter, r *http.Request) { |
| 205 | status := NodeStatus{ |
| 206 | Running: h.runner.IsRunning(), |
| 207 | Last: h.runner.GetLastResult(), |
| 208 | } |
| 209 | writeNodeJSON(w, http.StatusOK, status) |
| 210 | } |
| 211 | |
| 212 | func (h *NodeHandler) handleGetConfig(w http.ResponseWriter, r *http.Request) { |
| 213 | cfg, err := h.loadConfig() |
nothing calls this directly
no test coverage detected