Documentation ¶
Index ¶
- Variables
- type DoHServer
- type DoTServer
- type Provider
- func CiraFamily() Provider
- func CiraPrivate() Provider
- func CiraProtected() Provider
- func CleanBrowsingAdult() Provider
- func CleanBrowsingFamily() Provider
- func CleanBrowsingSecurity() Provider
- func Cloudflare() Provider
- func CloudflareFamily() Provider
- func CloudflareSecurity() Provider
- func Google() Provider
- func LibreDNS() Provider
- func OpenDNS() Provider
- func Quad9() Provider
- func Quad9Secured() Provider
- func Quad9Unsecured() Provider
- func Quadrant() Provider
- type Providers
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIPNotSet = errors.New("IP address is not set") ErrIPIsUnspecified = errors.New("IP address is unspecified") ErrPortNotSet = errors.New("port is not set") )
View Source
var ( ErrProviderNameNotSet = errors.New("provider name not set") ErrDoTIPv4NotSet = errors.New("DoT server IPv4 addresses not set") ErrDoTIPNotSet = errors.New("DoT server IPv4 and IPv6 addresses not set") ErrDoTNameNotSet = errors.New("DoT server name not set") ErrDoTPortNotSet = errors.New("DoT server port not set") ErrDoHURLNotSet = errors.New("DoH URL not set") ErrDoHIPv4NotSet = errors.New("DoH server IPv4 addresses not set") ErrDoHIPNotSet = errors.New("DoH server IP addresses not set") )
View Source
var (
ErrParseProviderNameUnknown = errors.New("provider does not match any known providers")
)
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Name string `json:"name" yaml:"name"` DoT DoTServer `json:"dot" yaml:"dot"` DoH DoHServer `json:"doh" yaml:"doh"` }
func CiraFamily ¶
func CiraFamily() Provider
func CiraPrivate ¶
func CiraPrivate() Provider
func CiraProtected ¶
func CiraProtected() Provider
func CleanBrowsingAdult ¶
func CleanBrowsingAdult() Provider
func CleanBrowsingFamily ¶
func CleanBrowsingFamily() Provider
func CleanBrowsingSecurity ¶
func CleanBrowsingSecurity() Provider
func Cloudflare ¶
func Cloudflare() Provider
func CloudflareFamily ¶
func CloudflareFamily() Provider
func CloudflareSecurity ¶
func CloudflareSecurity() Provider
func Quad9Secured ¶
func Quad9Secured() Provider
func Quad9Unsecured ¶
func Quad9Unsecured() Provider
func (Provider) ValidateForDoH ¶
func (Provider) ValidateForDoT ¶
type Providers ¶
type Providers struct {
// contains filtered or unexported fields
}
func NewProviders ¶
func NewProviders() *Providers
Source Files ¶
Click to show internal directories.
Click to hide internal directories.