Documentation ¶
Index ¶
- Variables
- func AddError(c *gin.Context, e *model.Error)
- func GetErrors(c *gin.Context) *model.Errors
- func GetScanRequest(id string) (*model.ScanRequest, error)
- func GitScan(req *model.ScanRequest) (*model.ScanRequest, error)
- func SetErrors(c *gin.Context)
- func StartDispatcher(nworkers int)
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInternalServer = &model.Error{500, "Internal Server Error", "Something went wrong."} ErrBadRequest = &model.Error{400, "Bad Request", "The request had bad syntax or was inherently impossible to be satisfied"} ErrForbidden = &model.Error{403, "Forbidden", "Access deny"} ErrNotFound = &model.Error{404, "Not Found", "Not found anything matching the URI given"} ErrMethodNotFound = &model.Error{405, "Method Not Found", "Not found anything matching method"} )
View Source
var Cache *cache.Cache
View Source
var WorkQueue = make(chan model.ScanRequest, 100)
View Source
var WorkerQueue chan chan model.ScanRequest
Functions ¶
func GetScanRequest ¶
func GetScanRequest(id string) (*model.ScanRequest, error)
func GitScan ¶
func GitScan(req *model.ScanRequest) (*model.ScanRequest, error)
func StartDispatcher ¶
func StartDispatcher(nworkers int)
Types ¶
Click to show internal directories.
Click to hide internal directories.