Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) LookupRDataIP(ip net.IPNet) dnsdb.Query
- func (c *Client) LookupRDataIPRange(lower, upper net.IP) dnsdb.Query
- func (c *Client) LookupRDataName(name string) dnsdb.Query
- func (c *Client) LookupRDataRaw(raw []byte) dnsdb.Query
- func (c *Client) LookupRRSet(name string) dnsdb.Query
- func (c *Client) RateLimit() dnsdb.RateLimitQuery
- func (c *Client) SummarizeRDataIP(ip net.IPNet) dnsdb.Query
- func (c *Client) SummarizeRDataIPRange(lower, upper net.IP) dnsdb.Query
- func (c *Client) SummarizeRDataName(name string) dnsdb.Query
- func (c *Client) SummarizeRDataRaw(raw []byte) dnsdb.Query
- func (c *Client) SummarizeRRSet(name string) dnsdb.Query
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) LookupRDataIPRange ¶
func (*Client) RateLimit ¶
func (c *Client) RateLimit() dnsdb.RateLimitQuery
func (*Client) SummarizeRDataIPRange ¶
Click to show internal directories.
Click to hide internal directories.