Documentation ¶
Index ¶
- func DownloadData(w io.Writer, optionFuncs ...fetchOptionFunc) error
- func FetchData(destData *Data, optionFuncs ...fetchOptionFunc) error
- func ParseEPSSDataCSV(r io.Reader, data *Data) error
- func WithClient(client *http.Client) fetchOptionFunc
- func WithURL(url string) fetchOptionFunc
- type CVE
- type Data
- type FetchOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadData ¶ added in v0.7.0
func ParseEPSSDataCSV ¶ added in v0.7.0
ParseEPSSDataCSV custom CSV parsing function
func WithClient ¶ added in v0.7.0
Types ¶
type CVE ¶
CVE represents a row in the CSV data
Values can be converted lazily to a float on read
func (CVE) PercentileValue ¶ added in v0.7.0
PercentileValue lazy convert to float
type FetchOptions ¶ added in v0.7.0
FetchOptions optional settings for the request
func DefaultFetchOptions ¶ added in v0.7.0
func DefaultFetchOptions() *FetchOptions
DefaultFetchOptions use the default client and url for today's scores
Click to show internal directories.
Click to hide internal directories.