models

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultTLSPort specifies the default port for a DNS server connecting over TCP over TLS
	DefaultTLSPort = "853"
	// DefaultUDPPort specifies the default port for a DNS server connecting over UDP
	DefaultUDPPort = "53"
	// DefaultTCPPort specifies the default port for a DNS server connecting over TCP
	DefaultTCPPort = "53"
	UDPResolver    = "udp"
	DOHResolver    = "doh"
	TCPResolver    = "tcp"
	DOTResolver    = "dot"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Nameserver

type Nameserver struct {
	Address string
	Type    string
}

Nameserver represents the type of Nameserver along with the server address.

type QueryFlags

type QueryFlags struct {
	QNames           []string      `koanf:"query" json:"query"`
	QTypes           []string      `koanf:"type" json:"type"`
	QClasses         []string      `koanf:"class" json:"class"`
	Nameservers      []string      `koanf:"nameservers" json:"nameservers"`
	UseIPv4          bool          `koanf:"ipv4" json:"ipv4"`
	UseIPv6          bool          `koanf:"ipv6" json:"ipv6"`
	Ndots            int           `koanf:"ndots" json:"ndots"`
	Timeout          time.Duration `koanf:"timeout" json:"timeout"`
	Color            bool          `koanf:"color" json:"-"`
	DisplayTimeTaken bool          `koanf:"time" json:"-"`
	ShowJSON         bool          `koanf:"json" json:"-"`
	UseSearchList    bool          `koanf:"search" json:"-"`
}

QueryFlags is used store the query params supplied by the user.

Jump to

Keyboard shortcuts

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