util

package
v0.0.0-...-7a72f0a Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2014 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB_Add

func DB_Add(db *sql.DB, cveid string, modified time.Time, ticketid string)

func DB_TicketID

func DB_TicketID(db *sql.DB, cveid string) string

func DB_Update

func DB_Update(db *sql.DB, cveid string, modified time.Time)

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

func Download_File(url string, cafile string) []byte

func Exists

func Exists(db *sql.DB, cveid string) bool

func Get_DB

func Get_DB(dbfile string) *sql.DB

func Gunzip

func Gunzip(in []byte) []byte

func Modified_Matches

func Modified_Matches(db *sql.DB, cveid string, modified time.Time) bool

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

Jump to

Keyboard shortcuts

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