Documentation ¶
Overview ¶
Package parallel allows multiple checks in paralell using dnsutil.ResolvChecker interface.
This package is a work in progress and makes no API stability promises.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Request Request Response dnsutil.CacheResponse Err error }
Response is used for store request and response in an Check parallel to the resolv checker.
func Check ¶
func Check(ctx context.Context, checkers []dnsutil.ResolvChecker, requests []Request) ([]Response, bool, error)
Check checks a set of queries in parallel. It returns an slice with the response, a boolean returning true if there is an error in at least one query and an error if there was a problem in the parallel check.
Click to show internal directories.
Click to hide internal directories.