Documentation ¶ Index ¶ Variables func Resolve(ctx context.Context, hostport string, timeout time.Duration, ...) (net.IP, int, error) func ResolveIPv4(ctx context.Context, timeout time.Duration, host string) (net.IP, error) 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. Source Files ¶ View all Source files resolver.go Click to show internal directories. Click to hide internal directories.