Documentation
¶
Index ¶
Constants ¶
View Source
const ( // InitPageLimit must >= UpdatePageLimit ! InitPageLimit = 3 UpdatePageLimit = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WatchVulnApp ¶
type WatchVulnApp struct {
// contains filtered or unexported fields
}
func NewApp ¶
func NewApp(config *WatchVulnAppConfig, textPusher push.TextPusher, rawPusher push.RawPusher) (*WatchVulnApp, error)
func (*WatchVulnApp) Close ¶
func (w *WatchVulnApp) Close()
func (*WatchVulnApp) FindGithubPoc ¶
type WatchVulnAppConfig ¶
type WatchVulnAppConfig struct { DBConn string `yaml:"db_conn" json:"db_conn"` Sources []string `yaml:"sources" json:"sources"` Interval time.Duration `yaml:"interval" json:"interval"` EnableCVEFilter bool `yaml:"enable_cve_filter" json:"enable_cve_filter"` NoGithubSearch bool `yaml:"no_github_search" json:"no_github_search"` NoStartMessage bool `yaml:"no_start_message" json:"no_start_message"` NoFilter bool `yaml:"no_filter" json:"no_filter"` DiffMode bool `yaml:"diff_mode" json:"diff_mode"` Version string `yaml:"version" json:"version"` WhiteKeywords []string `yaml:"white_keywords" json:"white_keywords"` BlackKeywords []string `yaml:"black_keywords" json:"black_keywords"` }
func (*WatchVulnAppConfig) DBConnForEnt ¶
func (c *WatchVulnAppConfig) DBConnForEnt() (string, string, error)
Click to show internal directories.
Click to hide internal directories.