dashboard

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 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 NewDashboardHandler

func NewDashboardHandler(postgresRead relational.InterfaceRead) *Handler

func (*Handler) GetCompanyTotalDevelopers

func (h *Handler) GetCompanyTotalDevelopers(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Company @Description get total developers @ID company-total-dev @Accept json @Produce json @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/total-developers [get] @Security ApiKeyAuth

func (*Handler) GetCompanyTotalRepositories

func (h *Handler) GetCompanyTotalRepositories(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Company @Description get total repositories @ID company-total-repositories @Accept json @Produce json @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/total-repositories [get] @Security ApiKeyAuth

func (*Handler) GetCompanyVulnByDeveloper

func (h *Handler) GetCompanyVulnByDeveloper(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Company @Description get total vulnerabilities by author @ID company-vulnerabilities-by-author @Accept json @Produce json @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/vulnerabilities-by-author [get] @Security ApiKeyAuth

func (*Handler) GetCompanyVulnByLanguage

func (h *Handler) GetCompanyVulnByLanguage(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Company @Description get total vulnerabilities by language @ID company-vulnerabilities-by-language @Accept json @Produce json @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/vulnerabilities-by-language [get] @Security ApiKeyAuth

func (*Handler) GetCompanyVulnByRepository

func (h *Handler) GetCompanyVulnByRepository(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Company @Description get total vulnerabilities by repository @ID company-vulnerabilities-by-repository @Accept json @Produce json @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/vulnerabilities-by-repository [get] @Security ApiKeyAuth

func (*Handler) GetCompanyVulnBySeverity

func (h *Handler) GetCompanyVulnBySeverity(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Company @Description get total vulnerabilities by severity @ID company-vulnerabilities-by-severity @Accept json @Produce json @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/all-vulnerabilities [get] @Security ApiKeyAuth

func (*Handler) GetCompanyVulnByTime

func (h *Handler) GetCompanyVulnByTime(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Company @Description get total vulnerabilities by time @ID company-vulnerabilities-by-time @Accept json @Produce json @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/vulnerabilities-by-time [get] @Security ApiKeyAuth

func (*Handler) GetRepositoryTotalDevelopers

func (h *Handler) GetRepositoryTotalDevelopers(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Repository @Description get total developers @ID repository-total-dev @Accept json @Produce json @Param repositoryID path string true "repositoryID of the repository" @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/repositories/{repositoryID}/total-developers [get] @Security ApiKeyAuth

func (*Handler) GetRepositoryTotalRepositories

func (h *Handler) GetRepositoryTotalRepositories(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Repository @Description get total repositories @ID repository-total-repositories @Accept json @Produce json @Param repositoryID path string true "repositoryID of the repository" @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/repositories/{repositoryID}/total-repositories [get] @Security ApiKeyAuth

func (*Handler) GetRepositoryVulnByDeveloper

func (h *Handler) GetRepositoryVulnByDeveloper(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Repository @Description get vuln by developer @ID repository-by-developer @Accept json @Produce json @Param repositoryID path string true "repositoryID of the repository" @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/repositories/{repositoryID}/vulnerabilities-by-author [get] @Security ApiKeyAuth

func (*Handler) GetRepositoryVulnByLanguage

func (h *Handler) GetRepositoryVulnByLanguage(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Repository @Description get vuln by language @ID repository-by-language @Accept json @Produce json @Param repositoryID path string true "repositoryID of the repository" @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/repositories/{repositoryID}/vulnerabilities-by-language [get] @Security ApiKeyAuth

func (*Handler) GetRepositoryVulnByRepository

func (h *Handler) GetRepositoryVulnByRepository(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Repository @Description get vuln by repository @ID repository-by-repository @Accept json @Produce json @Param repositoryID path string true "repositoryID of the repository" @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/repositories/{repositoryID}/vulnerabilities-by-repository [get] @Security ApiKeyAuth

func (*Handler) GetRepositoryVulnBySeverity

func (h *Handler) GetRepositoryVulnBySeverity(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Repository @Description get vuln by severity @ID repository-by-severity @Accept json @Produce json @Param repositoryID path string true "repositoryID of the repository" @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/repositories/{repositoryID}/all-vulnerabilities [get] @Security ApiKeyAuth

func (*Handler) GetRepositoryVulnByTime

func (h *Handler) GetRepositoryVulnByTime(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Repository @Description get vuln by time @ID repository-by-time @Accept json @Produce json @Param repositoryID path string true "repositoryID of the repository" @Param companyID path string true "companyID of the company" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Failure 500 "INTERNAL SERVER ERROR" @Router /analytic/dashboard/companies/{companyID}/repositories/{repositoryID}/vulnerabilities-by-time [get] @Security ApiKeyAuth

func (*Handler) GetVulnDetails

func (h *Handler) GetVulnDetails(w netHTTP.ResponseWriter, r *netHTTP.Request)

@Tags Dashboard Company @Description get vuln details @ID vuln-details @Accept json @Produce json @Param companyID path string true "companyID of the company" @Param query query string false "graphql query string" @Param page query string false "graphql query string" @Param size query string false "graphql query string" @Success 200 "OK" @Failure 400 "BAD REQUEST" @Router /analytic/dashboard/companies/{companyID}/details [get] @Security ApiKeyAuth

func (*Handler) Options

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

Jump to

Keyboard shortcuts

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