Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Analysis ¶
type Analysis struct {
Leaks []*Leak `json:"leaks"`
Hash string `json:"hash"`
Time int64 `json:"timestamp"`
}
Analysis represents a leak analysis
type DAO ¶
type DAO interface {
UpdateRepo(repository Repository) error
InsertRepo(repository Repository) error
FindRepo(url string) (Repository, error)
FindAll(skip int, limit int) ([]Repository, error)
}
DAO defines the interface for a repository DAO
type Leak ¶
type Leak struct {
File string `json:"file"`
Line int `json:"line"`
Column int `json:"column"`
Message string `json:"message"`
}
Leak represents one dependency leak
type Repository ¶
type Repository struct {
URL string `json:"url"`
Analysis []*Analysis `json:"analysis"`
Language string
}
Repository represents an analyzed repository
Click to show internal directories.
Click to hide internal directories.