address

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT 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 Endpoint

type Endpoint struct {
	Address string
	IP      *string
	Host    *string
	Path    *string
	Port    *string
	SSL     bool
}

func ParseIpPort

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

func ParsePeer

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

func ParseURL

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

func (*Endpoint) GetHostWithPath

func (hp *Endpoint) GetHostWithPath() *string

Jump to

Keyboard shortcuts

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