bootstrap

package
v4.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlainBootstrap added in v4.2.0

func NewPlainBootstrap(s string) *net.Resolver

NewPlainBootstrap returns a customized *net.Resolver which Dial func is modified to dial s. s SHOULD be a literal IP address and the port SHOULD also be literal. Port can be omitted. In this case, the default port is :53. e.g. NewPlainBootstrap("8.8.8.8"), NewPlainBootstrap("127.0.0.1:5353") If s is empty, NewPlainBootstrap returns nil. (A nil *net.Resolver is valid in net.Dialer.) Note that not all platform support a customized *net.Resolver. It also depends on the version of go runtime. See the package docs from the net package for more info.

Types

This section is empty.

Jump to

Keyboard shortcuts

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