netUtils

package
v0.0.0-...-3b51f2e Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertPublicAddress

func AssertPublicAddress(address string) (net.IP, int)

func CheckPublicIp

func CheckPublicIp(ip net.IP) error

func GetInsecureHttpClient

func GetInsecureHttpClient() *http.Client

func GetPublicIP

func GetPublicIP() (ips []net.IP, indirect bool, err error)

func NewAddrPortWithIP

func NewAddrPortWithIP(ip net.IP, port int) netip.AddrPort

func NewAddrPortWithString

func NewAddrPortWithString(ip string, port int) netip.AddrPort

Types

This section is empty.

Jump to

Keyboard shortcuts

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