Documentation ¶
Index ¶
- func DeleteNil(errs []error) (new []error)
- func DeleteRecordNotFound(errs []error) (new []error)
- func DiffRedhat(old, new *models.RedhatCVE, config config.RedhatWatchCve) (body string)
- func FetchConcurrently(urls []string, concurrency, wait int) (responses [][]byte, err error)
- func FetchURL(url, apikey string) ([]byte, error)
- func GenWorkers(num, wait int) chan<- func()
- func GetDefaultLogDir() string
- func Major(osVer string) (majorVersion string)
- func SetLogger(logDir string, debug, logJSON bool)
- func TrimSpaceNewline(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteRecordNotFound ¶
DeleteRecordNotFound deletes gorm.ErrRecordNotFound in errs
func DiffRedhat ¶
func DiffRedhat(old, new *models.RedhatCVE, config config.RedhatWatchCve) (body string)
func FetchConcurrently ¶
FetchConcurrently fetches concurrently
func GetDefaultLogDir ¶
func GetDefaultLogDir() string
GetDefaultLogDir returns default log directory
func TrimSpaceNewline ¶
TrimSpaceNewline deletes space character and newline character(CR/LF)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.