Documentation ¶
Index ¶
- func DB_Add(db *sql.DB, cveid string, modified time.Time, ticketid string)
- func DB_TicketID(db *sql.DB, cveid string) string
- func DB_Update(db *sql.DB, cveid string, modified time.Time)
- func Download_File(url string, cafile string) []byte
- func Exists(db *sql.DB, cveid string) bool
- func Get_DB(dbfile string) *sql.DB
- func Gunzip(in []byte) []byte
- func Modified_Matches(db *sql.DB, cveid string, modified time.Time) bool
- type ServiceConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DB_Update ¶
Note that this implementation tracks only the previous modified time It's okay as long as no feed contains several modifications of same CVE item
func Download_File ¶
Types ¶
type ServiceConfiguration ¶
type ServiceConfiguration struct { CAKeyFile string FeedURL string CWEfile string DBFile string BlackList string }
Defines the configuration file format
func Load_Config ¶
func Load_Config(path string) ServiceConfiguration
Used to load the configuration from file
Click to show internal directories.
Click to hide internal directories.