Documentation ¶
Index ¶
- type IPNet
- func (net IPNet) ContainIP(ip net.IP) bool
- func (thisIpnet IPNet) ContainIPNet(ipnet IPNet) bool
- func (thisIpNet IPNet) Equal(ipnet IPNet) bool
- func (ipnet IPNet) GetIP() net.IP
- func (ipnet IPNet) GetIPString() string
- func (ipnet IPNet) GetIpByteLen() int
- func (ipnet IPNet) GetMaskIpString() string
- func (ipnet IPNet) GetMaskPrefixInIpv6() int
- func (thisIpNet IPNet) GetParentIpNet() IPNet
- func (ipnet IPNet) GetPrefix() int
- func (thisIpNet IPNet) IsRootIpNet() bool
- func (net IPNet) String() string
- func (thisIpNet IPNet) ToGoIPNet() *net.IPNet
- type IPNetSet
- type Ipv4Net
- func (thisIpnet Ipv4Net) ContainIP(ip net.IP) bool
- func (thisIpnet Ipv4Net) ContainIPNet(ipnet Ipv4Net) bool
- func (thisIpnet Ipv4Net) ContainUint32Ip(ip uint32) bool
- func (thisIpNet Ipv4Net) Equal(ipnet Ipv4Net) bool
- func (thisIpNet Ipv4Net) GetIp() net.IP
- func (thisIpNet Ipv4Net) GetMaskIpString() string
- func (thisIpNet Ipv4Net) GetPrefix() int
- func (thisIpNet Ipv4Net) GetUint32Ip() uint32
- func (thisIpNet Ipv4Net) String() string
- func (thisIpNet Ipv4Net) ToGoIPNet() *net.IPNet
- type Ipv4NetSet
- func (set *Ipv4NetSet) ContainIP(ip net.IP) bool
- func (set *Ipv4NetSet) GetIpv4NetList() []Ipv4Net
- func (set *Ipv4NetSet) MergeIPNet(ipnet Ipv4Net)
- func (set *Ipv4NetSet) RemoveIPNet(ipnet Ipv4Net)
- func (set *Ipv4NetSet) RemoveIp(ip net.IP)
- func (set *Ipv4NetSet) RemoveIpString(ipString string)
- func (set *Ipv4NetSet) Sort()
- func (set *Ipv4NetSet) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPNet ¶
type IPNet struct {
// contains filtered or unexported fields
}
func GetIpv4RootIpNet ¶
func GetIpv4RootIpNet() IPNet
func GetIpv6RootIpNet ¶
func GetIpv6RootIpNet() IPNet
func MustParseIPNet ¶
func ParseIPNetDefault32 ¶
func (IPNet) ContainIPNet ¶
func (IPNet) GetIPString ¶
func (IPNet) GetIpByteLen ¶
func (IPNet) GetMaskIpString ¶
func (IPNet) GetMaskPrefixInIpv6 ¶
func (IPNet) GetParentIpNet ¶
func (IPNet) IsRootIpNet ¶
type IPNetSet ¶
type IPNetSet struct {
// contains filtered or unexported fields
}
func NewAllPassIPNet ¶
func NewAllPassIPNet() *IPNetSet
func (*IPNetSet) GetIPNetList ¶
func (*IPNetSet) MergeIPNet ¶
func (*IPNetSet) RemoveIPNet ¶
func (*IPNetSet) SimpleIpNet ¶
func (set *IPNetSet) SimpleIpNet()
type Ipv4Net ¶
type Ipv4Net uint64
func MustParseIpv4Net ¶
func NewIpv4NetFromIP ¶
func (Ipv4Net) ContainIPNet ¶
func (Ipv4Net) ContainUint32Ip ¶
func (Ipv4Net) GetMaskIpString ¶
func (Ipv4Net) GetUint32Ip ¶
type Ipv4NetSet ¶
type Ipv4NetSet struct { List []Ipv4Net // contains filtered or unexported fields }
func NewAllPassIpv4Net ¶
func NewAllPassIpv4Net() *Ipv4NetSet
func (*Ipv4NetSet) GetIpv4NetList ¶
func (set *Ipv4NetSet) GetIpv4NetList() []Ipv4Net
func (*Ipv4NetSet) MergeIPNet ¶
func (set *Ipv4NetSet) MergeIPNet(ipnet Ipv4Net)
func (*Ipv4NetSet) RemoveIPNet ¶
func (set *Ipv4NetSet) RemoveIPNet(ipnet Ipv4Net)
func (*Ipv4NetSet) RemoveIp ¶
func (set *Ipv4NetSet) RemoveIp(ip net.IP)
func (*Ipv4NetSet) RemoveIpString ¶
func (set *Ipv4NetSet) RemoveIpString(ipString string)
func (*Ipv4NetSet) Sort ¶
func (set *Ipv4NetSet) Sort()
func (*Ipv4NetSet) String ¶
func (set *Ipv4NetSet) String() string
Click to show internal directories.
Click to hide internal directories.