Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailablePortForAddress ¶
GetAvailablePortForAddress returns an open port on the specified address
func GetOutboundIP ¶
GetOutboundIP gets the locally preferred outbound IP address
From https://stackoverflow.com/questions/23558425/how-do-i-get-the-local-ip-address-in-go
func ValidateDomainName ¶
ValidateDomainName validates the string value as a domain name
Types ¶
type IpMetadata ¶
func GetIpMetadata ¶
func GetIpMetadata(ctx context.Context, db *maxminddb.Reader, ip string) (*IpMetadata, error)
GetIpMetadata gets metadata about an IP. Information is provided on a best-effort basis.
Click to show internal directories.
Click to hide internal directories.