()
| 1636 | } |
| 1637 | |
| 1638 | func (h *handler) handleSGCollectStatus() error { |
| 1639 | status := "stopped" |
| 1640 | if h.server.SGCollect.IsRunning() { |
| 1641 | status = "running" |
| 1642 | } |
| 1643 | |
| 1644 | h.writeRawJSONStatus(http.StatusOK, []byte(`{"status":"`+status+`"}`)) |
| 1645 | base.Audit(h.ctx(), base.AuditIDSyncGatewayCollectInfoStatus, nil) |
| 1646 | return nil |
| 1647 | } |
| 1648 | |
| 1649 | func (h *handler) handleSGCollectCancel() error { |
| 1650 | err := h.server.SGCollect.Stop() |
nothing calls this directly
no test coverage detected