v1

package
v0.0.0-...-a0c03a0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hostname

type Hostname struct {
	// contains filtered or unexported fields
}

Hostname represents the fully-qualified domain name of a host.

func NewHostname

func NewHostname(h string) (Hostname, error)

NewHostname returns a new instance of Hostname.

func (Hostname) IPv4

func (h Hostname) IPv4() ([]of.IP, error)

IPv4() determines the IPv4 addresses associated with a Hostname or similar entity.

func (Hostname) IPv6

func (h Hostname) IPv6() ([]of.IP, error)

IPv6() determines the IPv6 addresses associated with a Hostname or similar entity.

func (Hostname) String

func (h Hostname) String() string

String implements the fmt.Stringer interface.

type IP

type IP struct {
	// contains filtered or unexported fields
}

IP represents an IPv4 or IPv6 address.

func NewIP

func NewIP(ip string) (IP, error)

NewIP returns a new instance of IP.

func (IP) Hostnames

func (ip IP) Hostnames() ([]of.Hostname, error)

Hostnames determines the hostnames associated with an IPv4 or IPv6 address or similar entity.

func (IP) String

func (ip IP) String() string

String implements the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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