Documentation ¶
Overview ¶
Package dnsreport implements the dnsreport subcommand.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subcommand ¶
type Subcommand struct { // APIURL is the MANDATORY OONI API URL to use. APIURL string // DNSOverHTTPSServerURL is the MANDATORY DNS-over-HTTPS server URL. DNSOverHTTPSServerURL string // Database is the MANDATORY path of the database where to // store interim state while processing URLs. Database string // ReportFile is the MANDATORY file where to write the final report. ReportFile string // RepositoryDir is the MANDATORY directory where we previously // cloned the citizenlab/test-lists repository. RepositoryDir string }
Subcommand is the dnsreport subcommand. The zero value is invalid; please, make sure you initialize all the fields marked as MANDATORY.
func (*Subcommand) Main ¶
func (s *Subcommand) Main(ctx context.Context)
Main is the main function of the dnsreport subcommand. This function calls runtimex.PanicOnError in case of failure.
Click to show internal directories.
Click to hide internal directories.