iputils

package
v4.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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