address

package
v0.0.0-...-1ccb659 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPByDomain

func GetIPByDomain(address string) (*string, error)

func GetPublicIP

func GetPublicIP() net.IP

func ParseIP

func ParseIP(address string) (*string, error)

Types

type HostPort

type HostPort struct {
	Address string
	IP      *string
	Host    *string
	Path    *string
	Port    *string
}

func ParseIpPort

func ParseIpPort(address string) (*HostPort, error)

func ParsePeer

func ParsePeer(address string) (*HostPort, error)

func ParseURL

func ParseURL(address string) (*HostPort, error)

func (*HostPort) GetHostWithPath

func (hp *HostPort) GetHostWithPath() *string

Jump to

Keyboard shortcuts

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