(ctx *fiber.Ctx)
| 47 | } |
| 48 | |
| 49 | func (c *clientController) ReportStatusDeploy(ctx *fiber.Ctx) error { |
| 50 | reportStatusRequest := new(types.ReportStatusDeployRequest) |
| 51 | validationErrors := utils.BindAndValidate(ctx, reportStatusRequest) |
| 52 | if len(validationErrors) > 0 { |
| 53 | logger.L.Error("In ReportStatusDeploy: Validation errors", zap.Any("validationErrors", validationErrors)) |
| 54 | return ctx.Status(fiber.StatusOK).Send([]byte("OK")) |
| 55 | } |
| 56 | logger.L.Info("In ReportStatusDeploy", zap.Any("reportStatusRequest", reportStatusRequest)) |
| 57 | err := c.clientService.ReportStatusDeploy(reportStatusRequest) |
| 58 | if err != nil { |
| 59 | logger.L.Error("In ReportStatusDeploy: Error reporting status", zap.Error(err)) |
| 60 | } |
| 61 | return ctx.Status(fiber.StatusOK).Send([]byte("OK")) |
| 62 | } |
| 63 | |
| 64 | func (c *clientController) ReportStatusDownload(ctx *fiber.Ctx) error { |
| 65 | reportStatusRequest := new(types.ReportStatusDownloadRequest) |
nothing calls this directly
no test coverage detected