Documentation
¶
Overview ¶
Package iputils offers a series of methods for handling ip addresses
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPDomainWrapper ¶ added in v4.9.0
type IPDomainWrapper struct {
// contains filtered or unexported fields
}
IPDomainWrapper is a struct that represents an IP address
func NewIPDomainWrapper ¶ added in v4.9.0
func NewIPDomainWrapper(rawIP string) *IPDomainWrapper
NewIPDomainWrapper used to create a new IPDomainWrapper instance
func (*IPDomainWrapper) GetFormatPortalIP ¶ added in v4.9.0
func (w *IPDomainWrapper) GetFormatPortalIP() string
GetFormatPortalIP used to get format portal ip according to IP type
func (*IPDomainWrapper) GetPingCommand ¶ added in v4.9.0
func (w *IPDomainWrapper) GetPingCommand() string
GetPingCommand used to get ping command according to IP type
func (*IPDomainWrapper) IsDN ¶ added in v4.9.0
func (w *IPDomainWrapper) IsDN() bool
IsDN used to check if the IP address is domain name
func (*IPDomainWrapper) IsIPv4 ¶ added in v4.9.0
func (w *IPDomainWrapper) IsIPv4() bool
IsIPv4 used to check if the IP address is IPv4
func (*IPDomainWrapper) String ¶ added in v4.9.0
func (w *IPDomainWrapper) String() string
String used to get ip string
Click to show internal directories.
Click to hide internal directories.