util

package
v0.1.42 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// GlobalUnicast IPV6 type
	GlobalUnicast = iota
	// UniqueLocal IPV6 type
	UniqueLocal
	// LinkLocalUnicast IPV6 type
	LinkLocalUnicast
	// Loopback IPV6 type
	Loopback
	// Multicast IPV6 type
	Multicast
	// InterfaceLocalMulticast IPV6 type
	InterfaceLocalMulticast
	// LinkLocalMulticast IPV6 type
	LinkLocalMulticast
	// Private IPV6 type
	Private
	// Unspecified IPV6 type
	Unspecified
	// Unknown IPV6 type
	Unknown
)

Variables

This section is empty.

Functions

func AddrType added in v0.1.37

func AddrType(addr netip.Addr) int

AddrType get address type as int

func AddrTypeName added in v0.1.37

func AddrTypeName(addr netip.Addr) string

AddrTypeName the type of address for the subnet https://www.networkacademy.io/ccna/ipv6/ipv6-address-types

func DomainAddresses added in v0.1.34

func DomainAddresses(domain string) (addresses []netip.Addr, err error)

DomainAddresses get addresses for a domain

func DomainMXRecods added in v0.1.34

func DomainMXRecods(domain string) (mxRecods []*net.MX, err error)

DomainMXRecods get MX records for a domain

Types

This section is empty.

Jump to

Keyboard shortcuts

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