analysis

package
v0.0.0-...-46e61fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

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

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) Options

func (h *Handler) Options(w netHTTP.ResponseWriter, _ *netHTTP.Request)

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]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL