MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / handleStatus

Method handleStatus

internal/ipsentinel/nodehandler.go:204–210  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

202}
203
204func (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
212func (h *NodeHandler) handleGetConfig(w http.ResponseWriter, r *http.Request) {
213 cfg, err := h.loadConfig()

Callers

nothing calls this directly

Calls 3

writeNodeJSONFunction · 0.85
IsRunningMethod · 0.80
GetLastResultMethod · 0.80

Tested by

no test coverage detected