Documentation ¶
Index ¶
- Variables
- type Checker
- func (checker *Checker) AddDomain(domain string) bool
- func (checker *Checker) Enqueue(id int, address string)
- func (checker *Checker) ReadDomains(path string) error
- func (checker *Checker) Results() <-chan *Job
- func (checker *Checker) Start() error
- func (checker *Checker) Stop()
- func (checker *Checker) UpdateExectations() error
- type Job
Constants ¶
This section is empty.
Variables ¶
View Source
var Metrics struct { Queries uint64 // total amount of DNS queries Processed uint64 // total checks done Valid uint64 // total checks with valid result Invalid uint64 // total checks with invalid result DNSSecSupported uint64 // valid results with dnssec DNSSecNotSupported uint64 // valid results without dnssec }
Metrics holds runtime metrics
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct { WorkersCount uint ReferenceServer string MaxAttempts uint Timeout time.Duration GeoDbPath string DNSClient dns.Client // contains filtered or unexported fields }
Checker is a checker instance
func (*Checker) ReadDomains ¶
ReadDomains reads the domains to be checked from the given file
func (*Checker) Stop ¶
func (checker *Checker) Stop()
Stop closes input channel and waits for workers to finish
func (*Checker) UpdateExectations ¶
UpdateExectations checks the domain list against the references nameserver and saves the responses
Click to show internal directories.
Click to hide internal directories.