resolver

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBlocked        = errors.New("ip is blocked")
	ErrNotIPv4Address = errors.New("not ipv4 address")
	ErrInvalidPort    = errors.New("invalid port number")
)

Functions

func Resolve

func Resolve(ctx context.Context, hostport string, timeout time.Duration, bl *blocklist.Blocklist) (net.IP, int, error)

func ResolveIPv4

func ResolveIPv4(ctx context.Context, timeout time.Duration, host string) (net.IP, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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