leakdb

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: GPL-3.0 Imports: 9 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 {
	HTTPClient *http.Client
	URL        string
	APIToken   string
}

Client - An HTTP client object

func NewClient

func NewClient(apiURL, apiToken string, config ClientHTTPConfig) (*Client, error)

NewClient - Init new client object with config

func (*Client) Query

func (client *Client) Query(querySet *api.QuerySet) (*api.ResultSet, error)

Query - Perform a LeakDB query

func (*Client) QueryAll

func (client *Client) QueryAll(querySet api.QuerySet) (*api.ResultSet, error)

QueryAll - Query for all results

type ClientHTTPConfig

type ClientHTTPConfig struct {
	ProxyURL          string
	SkipTLSValidation bool
	Timeout           time.Duration // Timeout in seconds
}

ClientHTTPConfig - Configure the HTTP client

Jump to

Keyboard shortcuts

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