provider

package
v2.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrParse = errors.New("provider does not match any known providers")

Functions

This section is empty.

Types

type DNSServer

type DNSServer struct {
	IPv4 []netip.Addr `json:"ipv4"`
	IPv6 []netip.Addr `json:"ipv6"`
}

type DoHServer

type DoHServer struct {
	URL string `json:"url"`
}

type DoTServer

type DoTServer struct {
	IPv4 []netip.Addr `json:"ipv4"`
	IPv6 []netip.Addr `json:"ipv6"`
	Name string       `json:"name"` // for TLS verification
	Port uint16       `json:"port"`
}

type Provider

type Provider struct {
	Name string    `json:"name"`
	DNS  DNSServer `json:"dns"`
	DoT  DoTServer `json:"dot"`
	DoH  DoHServer `json:"doh"`
}

func All

func All() []Provider

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 Google

func Google() Provider

func LibreDNS

func LibreDNS() Provider

func OpenDNS

func OpenDNS() Provider

func Parse

func Parse(s string) (provider Provider, err error)

func Quad9

func Quad9() Provider

func Quad9Secured

func Quad9Secured() Provider

func Quad9Unsecured

func Quad9Unsecured() Provider

func Quadrant

func Quadrant() Provider

Jump to

Keyboard shortcuts

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