Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewAnalysisHandler ¶
func NewAnalysisHandler(controller analysisController.IController) *Handler
func (*Handler) Get ¶
func (h *Handler) Get(w netHTTP.ResponseWriter, r *netHTTP.Request)
Get @Tags Analysis @Security ApiKeyAuth @Description Get analysis on database @ID get-one-analysis @Accept json @Produce json @Param analysisID path string true "analysisID of the analysis" @Success 200 {object} entities.Response{content=analysisEntities.Analysis} "OK" @Success 400 {object} entities.Response{content=string} "BAD REQUEST" @Success 404 {object} entities.Response{content=string} "NOT FOUND" @Failure 500 {object} entities.Response{content=string} "INTERNAL SERVER ERROR" @Router /api/analysis/{analysisID} [get]
func (*Handler) Post ¶
func (h *Handler) Post(w netHTTP.ResponseWriter, r *netHTTP.Request)
Post @Tags Analysis @Security ApiKeyAuth @Description Start new analysis @ID start-new-analysis @Accept json @Produce json @Param SendNewAnalysis body cli.AnalysisData true "send new analysis info" @Success 201 {object} entities.Response{content=string} "CREATED" @Success 400 {object} entities.Response{content=string} "BAD REQUEST" @Success 404 {object} entities.Response{content=string} "NOT FOUND" @Failure 500 {object} entities.Response{content=string} "INTERNAL SERVER ERROR" @Router /api/analysis [post]