network

package
v0.0.0-...-7b46ad5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNameResolution = errors.New("failed to resolve any hostname IPs")
)

Functions

func ResolveHostnameIPs

func ResolveHostnameIPs(addr string) ([]string, error)

func ValidateHostnameUniqueness

func ValidateHostnameUniqueness(addr string) error

ValidateHostnameUniqueness Validate that the given hostname resolves to at most 1 ip per ip version.

Types

type ResolverError

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

func (*ResolverError) Error

func (r *ResolverError) Error() string

Jump to

Keyboard shortcuts

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