Documentation
¶
Index ¶
- Variables
- func AddrPortDetailsFromString(addrPort string) (netip.AddrPort, string, error)
- func ConvertAddrToIP(addr netip.Addr) net.IP
- func ExpandStringTemplate(templateString string, data any) (string, error)
- func FindInterfaceForAddr(a netip.Addr) (string, error)
- func FindInterfaceForIP(ip net.IP) (string, error)
- func GetMyIPs(ctx context.Context) ([]netip.Addr, error)
- func GetMyIPv4(ctx context.Context) (netip.Addr, error)
- func GetMyIPv6(ctx context.Context) (netip.Addr, error)
- func TCPAddrFromURL(url *url.URL) (string, error)
- func TCPPortFromURL(url *url.URL) (string, error)
- type DoneConn
- type RawConn
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IPv4ICanHazIP = "http://ipv4.icanhazip.com" IPv6ICanHazIP = "http://ipv6.icanhazip.com" )
Functions ¶
func ExpandStringTemplate ¶
Types ¶
type DoneConn ¶ added in v0.44.0
func NewDoneConn ¶ added in v0.44.0
Click to show internal directories.
Click to hide internal directories.