Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options ...ClientOption) *Client
NewClient creates a new EPSS client with the given options.
func (*Client) GetAllScores ¶
GetAllScores returns all the scores.
func (*Client) GetLastUpdated ¶
GetLastUpdated returns the last updated time of the scores.
func (*Client) GetUpdateInterval ¶ added in v1.1.0
GetUpdateInterval returns the update interval of the scores.
type ClientOption ¶ added in v1.1.0
type ClientOption func(*Client)
func WithDataURL ¶ added in v1.1.0
func WithDataURL(dataURL string) ClientOption
WithDataURL sets the data URL for the client.
func WithHTTPClient ¶ added in v1.1.0
func WithHTTPClient(httpClient HttpClient) ClientOption
WithHTTPClient sets the HTTP client for the client.
func WithUpdateInterval ¶ added in v1.1.0
func WithUpdateInterval(updateInterval time.Duration) ClientOption
WithUpdateInterval sets the update interval for the client.
Click to show internal directories.
Click to hide internal directories.