Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ParsedCIDR ¶
An ParsedCIDR contains FirstIP the first ip of the parsed range LasttIP the last ip of the parsed range IPNet represents an IP network IsIPv4 check for IPv4 IsIPv6 check for IPv6
func ParseCIDR ¶
func ParseCIDR(s string) (*ParsedCIDR, error)
ParseCIDR return ParsedCIDR for the provided IP Range
func (*ParsedCIDR) FirstIPv4 ¶
func (p *ParsedCIDR) FirstIPv4() uint32
FirstIPv4 return Decimal FirstIP
func (*ParsedCIDR) FirstIPv6 ¶
func (p *ParsedCIDR) FirstIPv6() *big.Int
FirstIPv6 return Decimal FirstIP
func (*ParsedCIDR) HostCountIPv4 ¶
func (p *ParsedCIDR) HostCountIPv4() uint32
HostCountIPv4 return number of IPs on the parsed range
func (*ParsedCIDR) HostCountIPv6 ¶
func (p *ParsedCIDR) HostCountIPv6() *big.Int
HostCountIPv6 return number of IPs on the parsed range
func (*ParsedCIDR) LastIPv6 ¶
func (p *ParsedCIDR) LastIPv6() *big.Int
LastIPv6 return Decimal LastIP
Click to show internal directories.
Click to hide internal directories.