ctrl

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 24 Imported by: 0

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

func (w *WatchVulnApp) FindGithubPoc(ctx context.Context, cveId string) ([]string, error)

func (*WatchVulnApp) Run

func (w *WatchVulnApp) Run(ctx context.Context) error

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"`
	Version         string        `yaml:"version" json:"version"`
}

func (*WatchVulnAppConfig) DBConnForEnt

func (c *WatchVulnAppConfig) DBConnForEnt() (string, string, error)

Jump to

Keyboard shortcuts

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