Documentation ¶
Index ¶
- type ScanInfosService
- func (w *ScanInfosService) DeleteScanInfosHandler() func(*gin.Context)
- func (w *ScanInfosService) GetAllScanInfosHandler() func(*gin.Context)
- func (w *ScanInfosService) GetScanInfosHandler() func(*gin.Context)
- func (w *ScanInfosService) NotFoundHandler() func(*gin.Context)
- func (w *ScanInfosService) RequestLoggerMiddleware() func(*gin.Context)
- func (w *ScanInfosService) Router(router *gin.Engine) *gin.Engine
- func (w *ScanInfosService) StoreScanInfosHandler() func(*gin.Context)
- func (w *ScanInfosService) UpdateScanInfosHandler() func(*gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanInfosService ¶
type ScanInfosService struct {
// contains filtered or unexported fields
}
func New ¶
func New(logger *zap.Logger, application *application.ScanInfosUsecase) *ScanInfosService
func (*ScanInfosService) DeleteScanInfosHandler ¶
func (w *ScanInfosService) DeleteScanInfosHandler() func(*gin.Context)
DeleteScanInfosHandler ... @Summary get a scan infos @Description get a scan information by its id @Tags ScanInfos @Accept json @Produce json @Param id path string true "ID string" @Success 200 {object} genericResponse @Failure 400 {object} errResponse @Failure 500 {object} errResponse @Router /api/v1/scaninfos/{id} [delete]
func (*ScanInfosService) GetAllScanInfosHandler ¶
func (w *ScanInfosService) GetAllScanInfosHandler() func(*gin.Context)
GetAllScanInfosHandler ... @Summary get all scan infos @Description get a list of all stored scan information @Tags ScanInfos @Accept json @Produce json @Success 200 {object} getAllScanInfosResponse @Failure 500 {object} errResponse @Router /api/v1/scaninfos [get]
func (*ScanInfosService) GetScanInfosHandler ¶
func (w *ScanInfosService) GetScanInfosHandler() func(*gin.Context)
GetScanInfosHandler ... @Summary get a scan infos @Description get a scan information by its id @Tags ScanInfos @Accept json @Produce json @Param id path string true "ID string" @Success 200 {object} ScanInfos @Failure 400 {object} errResponse @Failure 500 {object} errResponse @Router /api/v1/scaninfos/{id} [get]
func (*ScanInfosService) NotFoundHandler ¶
func (w *ScanInfosService) NotFoundHandler() func(*gin.Context)
func (*ScanInfosService) RequestLoggerMiddleware ¶
func (w *ScanInfosService) RequestLoggerMiddleware() func(*gin.Context)
RequestLoggerMiddleware logs the metadat and the body of the requests.
func (*ScanInfosService) StoreScanInfosHandler ¶
func (w *ScanInfosService) StoreScanInfosHandler() func(*gin.Context)
StoreScanInfosHandler ... @Summary store a scan details and get back the infos @Description save a scan information and return the full details @Tags ScanInfos @Accept json @Produce json @Param scanInfosStore body ScanInfos true "Store Scan Infos" @Success 200 {object} genericResponse @Success 500 {object} errResponse @Router /api/v1/scaninfos [post]
func (*ScanInfosService) UpdateScanInfosHandler ¶
func (w *ScanInfosService) UpdateScanInfosHandler() func(*gin.Context)
UpdateScanInfosHandler ... @Summary update an existing scan details @Description update a scan information based on its ID @Tags ScanInfos @Accept json @Produce json @Param scanInfosStore body ScanInfos true "Update Scan Infos" @Success 200 {object} genericResponse @Success 500 {object} errResponse @Router /api/v1/scaninfos [put]