Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultResolvers = []string{
"1.1.1.1:53",
"1.0.0.1:53",
"8.8.8.8:53",
"8.8.4.4:53",
}
DefaultResolvers contains the list of resolvers known to be trusted.
Functions ¶
This section is empty.
Types ¶
type DNSExecutor ¶
type DNSExecutor struct {
// contains filtered or unexported fields
}
DNSExecutor is a client for performing a DNS request for a template.
func NewDNSExecutor ¶
func NewDNSExecutor(options *DNSOptions) *DNSExecutor
NewDNSExecutor creates a new DNS executor from a template and a DNS request query.
func (*DNSExecutor) Close ¶
func (e *DNSExecutor) Close()
Close closes the dns executor for a template.
func (*DNSExecutor) ExecuteDNS ¶
func (e *DNSExecutor) ExecuteDNS(URL string) error
ExecuteDNS executes the DNS request on a URL
func (*DNSExecutor) GotResults ¶ added in v1.1.7
func (e *DNSExecutor) GotResults() bool
GotResults returns true if there were any results for the executor
type DNSOptions ¶
type DNSOptions struct { Debug bool Template *templates.Template DNSRequest *requests.DNSRequest Writer *bufio.Writer }
DNSOptions contains configuration options for the DNS executor.
type HTTPExecutor ¶
type HTTPExecutor struct {
// contains filtered or unexported fields
}
HTTPExecutor is client for performing HTTP requests for a template.
func NewHTTPExecutor ¶
func NewHTTPExecutor(options *HTTPOptions) (*HTTPExecutor, error)
NewHTTPExecutor creates a new HTTP executor from a template and a HTTP request query.
func (*HTTPExecutor) Close ¶
func (e *HTTPExecutor) Close()
Close closes the http executor for a template.
func (*HTTPExecutor) ExecuteHTTP ¶
func (e *HTTPExecutor) ExecuteHTTP(URL string) error
ExecuteHTTP executes the HTTP request on a URL
func (*HTTPExecutor) GotResults ¶ added in v1.1.7
func (e *HTTPExecutor) GotResults() bool
GotResults returns true if there were any results for the executor
type HTTPOptions ¶
type HTTPOptions struct { Template *templates.Template HTTPRequest *requests.HTTPRequest Writer *bufio.Writer Timeout int Retries int ProxyURL string ProxySocksURL string Debug bool CustomHeaders requests.CustomHeaders }
HTTPOptions contains configuration options for the HTTP executor.