v1

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentType       = "application/json"
	DefaultClientName = "dnsdb"
	SwClientKey       = "swclient"
	VersionKey        = "version"
	IdKey             = "id"
)

Variables

View Source
var DefaultDnsdbServer *url.URL

Functions

This section is empty.

Types

type Client

type Client struct {
	// HttpClient is an optional http.Client. `http.DefaultClient` is used if this is nil.
	HttpClient *http.Client
	// Server is an optional server URL. `DefaultDnsdbServer` is used if this is nil.
	Server *url.URL
	// Apikey is required and passed in the `X-API-Key` header to the server.
	Apikey string
	// ClientName is passed as the `swclient` URL parameter.
	ClientName string
	// ClientVersion is passed as the `version ` URL parameter.
	ClientVersion string
	// ClientId is passed as the `id` URL parameter.
	ClientId string
}

Client implements the DNSDB API v1

func (*Client) LookupRDataIP

func (c *Client) LookupRDataIP(ip net.IPNet) dnsdb.Query

func (*Client) LookupRDataIPRange

func (c *Client) LookupRDataIPRange(lower, upper net.IP) dnsdb.Query

func (*Client) LookupRDataName

func (c *Client) LookupRDataName(name string) dnsdb.Query

func (*Client) LookupRDataRaw

func (c *Client) LookupRDataRaw(raw []byte) dnsdb.Query

func (*Client) LookupRRSet

func (c *Client) LookupRRSet(name string) dnsdb.Query

func (*Client) RateLimit

func (c *Client) RateLimit() dnsdb.RateLimitQuery

func (*Client) SummarizeRDataIP

func (c *Client) SummarizeRDataIP(ip net.IPNet) dnsdb.Query

func (*Client) SummarizeRDataIPRange

func (c *Client) SummarizeRDataIPRange(lower, upper net.IP) dnsdb.Query

func (*Client) SummarizeRDataName

func (c *Client) SummarizeRDataName(name string) dnsdb.Query

func (*Client) SummarizeRDataRaw

func (c *Client) SummarizeRDataRaw(raw []byte) dnsdb.Query

func (*Client) SummarizeRRSet

func (c *Client) SummarizeRRSet(name string) dnsdb.Query

Jump to

Keyboard shortcuts

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