MemoryHealth returns the memory-specific health snapshot.
(c *gin.Context)
| 85 | |
| 86 | // MemoryHealth returns the memory-specific health snapshot. |
| 87 | func (h *BaseHandlers) MemoryHealth(c *gin.Context) { |
| 88 | payload, err := h.memoryHealth(c) |
| 89 | if err != nil { |
| 90 | h.respondMemoryError(c, StatusForMemoryError(err), err, nil) |
| 91 | return |
| 92 | } |
| 93 | c.JSON(http.StatusOK, payload) |
| 94 | } |
| 95 | |
| 96 | // MemoryConfigMetadata returns settings/config metadata that is safe for agents. |
| 97 | func (h *BaseHandlers) MemoryConfigMetadata(c *gin.Context) { |
nothing calls this directly
no test coverage detected