picker

package
v2.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Picker

type Picker struct {
	// contains filtered or unexported fields
}

func New

func New() *Picker

New returns a new fast thread safe random picker to use for DNS servers and their IP addresses.

func (*Picker) DNSIP

func (p *Picker) DNSIP(server provider.DNSServer, ipv6 bool) netip.Addr

func (*Picker) DNSServer

func (p *Picker) DNSServer(servers []provider.DNSServer) provider.DNSServer

func (*Picker) DoHServer

func (p *Picker) DoHServer(servers []provider.DoHServer) provider.DoHServer

func (*Picker) DoTIP

func (p *Picker) DoTIP(server provider.DoTServer, ipv6 bool) netip.Addr

func (*Picker) DoTServer

func (p *Picker) DoTServer(servers []provider.DoTServer) provider.DoTServer

func (*Picker) IP

func (p *Picker) IP(ips []netip.Addr) netip.Addr

Jump to

Keyboard shortcuts

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