api

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

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
}

Client struct

func NewClient

func NewClient(baseURL, userAgent, publicKey, privateKey string) (*Client, error)

NewClient creates an object which is used to query the iDefense API

func (Client) FetchAllThreatReportsSince

func (c Client) FetchAllThreatReportsSince(since int64) (<-chan *schema.FireeyeReport, error)

FetchAllThreatReportsSince will fetch all vulnerabilities with specified parameters

func (Client) FetchAllVulnerabilitiesSince

func (c Client) FetchAllVulnerabilitiesSince(since int64) ([]*schema.FireeyeVulnerability, error)

FetchAllVulnerabilitiesSince will fetch all vulnerabilities with specified parameters

func (Client) Request

func (client Client) Request(endpoint string) (io.Reader, error)

Request will fetch the given endpoint and return the response

Jump to

Keyboard shortcuts

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