network

package
v0.0.0-...-ef25644 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Family

func Family(a *net.IP) string

Family returns the string equivalent of the address family provided.

func GetSourceAddr

func GetSourceAddr(
	af string,
	srcAddr string,
	hostname string,
	ifaceName string,
	logger *log.Logger,
) (*net.IP, error)

GetSourceAddr discovers the source address.

func ResolveIP

func ResolveIP(ip string, servers []net.IP, logger *log.Logger) (string, error)

ResolveIP returns DNS name of given IP address. Returns the same input string, if resolution fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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