Documentation ¶
Index ¶
- type Controller
- func (c *Controller) GetTotalDevelopers(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (int, error)
- func (c *Controller) GetTotalRepositories(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (int, error)
- func (c *Controller) GetVulnByDeveloper(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByDeveloper, error)
- func (c *Controller) GetVulnByLanguage(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByLanguage, error)
- func (c *Controller) GetVulnByRepository(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByRepository, error)
- func (c *Controller) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnBySeverity, error)
- func (c *Controller) GetVulnByTime(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByTime, error)
- func (c *Controller) GetVulnerabilitiesByAuthor(query string, page, size int) (*graphql.Result, error)
- type IController
- type Mock
- func (m *Mock) GetTotalDevelopers(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (int, error)
- func (m *Mock) GetTotalRepositories(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (int, error)
- func (m *Mock) GetVulnByDeveloper(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByDeveloper, error)
- func (m *Mock) GetVulnByLanguage(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByLanguage, error)
- func (m *Mock) GetVulnByRepository(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByRepository, error)
- func (m *Mock) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnBySeverity, error)
- func (m *Mock) GetVulnByTime(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByTime, error)
- func (m *Mock) GetVulnerabilitiesByAuthor(query string, page, size int) (*graphql.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) GetTotalDevelopers ¶
func (*Controller) GetTotalRepositories ¶
func (*Controller) GetVulnByDeveloper ¶
func (c *Controller) GetVulnByDeveloper(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByDeveloper, error)
func (*Controller) GetVulnByLanguage ¶
func (c *Controller) GetVulnByLanguage(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByLanguage, error)
func (*Controller) GetVulnByRepository ¶
func (c *Controller) GetVulnByRepository(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByRepository, error)
func (*Controller) GetVulnBySeverity ¶
func (c *Controller) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnBySeverity, error)
func (*Controller) GetVulnByTime ¶
func (c *Controller) GetVulnByTime(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByTime, error)
func (*Controller) GetVulnerabilitiesByAuthor ¶
type IController ¶
type IController interface { GetVulnerabilitiesByAuthor(query string, page, size int) (*graphql.Result, error) GetTotalDevelopers(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (int, error) GetTotalRepositories(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (int, error) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnBySeverity, error) GetVulnByDeveloper(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByDeveloper, error) GetVulnByLanguage(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByLanguage, error) GetVulnByTime(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByTime, error) GetVulnByRepository(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByRepository, error) }
func NewDashboardController ¶
func NewDashboardController(postgresRead relational.InterfaceRead) IController
type Mock ¶
func (*Mock) GetTotalDevelopers ¶
func (*Mock) GetTotalRepositories ¶
func (*Mock) GetVulnByDeveloper ¶
func (m *Mock) GetVulnByDeveloper(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByDeveloper, error)
func (*Mock) GetVulnByLanguage ¶
func (m *Mock) GetVulnByLanguage(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByLanguage, error)
func (*Mock) GetVulnByRepository ¶
func (m *Mock) GetVulnByRepository(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByRepository, error)
func (*Mock) GetVulnBySeverity ¶
func (m *Mock) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnBySeverity, error)
func (*Mock) GetVulnByTime ¶
func (m *Mock) GetVulnByTime(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) ([]dashboardEntities.VulnByTime, error)
Click to show internal directories.
Click to hide internal directories.