controllers

package
v0.0.0-...-d4e64a4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthController

type HealthController struct{}

func (HealthController) Status

func (h HealthController) Status(c *gin.Context)

HealthController godoc @Summary Service health @Description get service health @Accept json @Produce json @Success 200 {string} Ok @Failure 400 {object} model.Error @Failure 404 {object} model.Error @Failure 500 {object} model.Error @Router /health [get]

type NotFoundController

type NotFoundController struct{}

func (NotFoundController) Error404

func (n NotFoundController) Error404(c *gin.Context)

func (NotFoundController) Error405

func (n NotFoundController) Error405(c *gin.Context)

type ScanController

type ScanController struct{}

func (ScanController) GitScan

func (u ScanController) GitScan(c *gin.Context)

GitScanController godoc @Summary GitScan api @Description submit url for scan @Accept json @Produce json @Security ApiKeyAuth @Param url query string true "url to scan" @Success 200 {object} model.ScanResultResponse @Failure 400 {object} model.Error @Failure 404 {object} model.Error @Failure 500 {object} model.ScanResultError @Router /v1/scan/git [get]

func (ScanController) Status

func (u ScanController) Status(c *gin.Context)

ScanStatusController godoc @Summary Scan status api @Description get the status scan @Security ApiKeyAuth @Accept json @Produce json @Param id path string true "scan ID" @Success 200 {object} model.ScanStatusResultResponse @Failure 400 {object} model.Error @Failure 404 {object} model.Error @Failure 500 {object} model.ScanResultError @Router /v1/scan/status/{id} [get]

Jump to

Keyboard shortcuts

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