dnsreport

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL