Documentation
¶
Index ¶
- func Ips(cidr string) ([]string, error)
- func IsCidr(ip string) bool
- func IsIP(ip string) bool
- func ToCidr(item string) *net.IPNet
- type BlackRock
- type IPRanger
- func (ir *IPRanger) Add(ipcidr string) error
- func (ir *IPRanger) AddFqdn(ip, fqdn string) error
- func (ir *IPRanger) AddIPNet(network *net.IPNet) error
- func (ir *IPRanger) Close() error
- func (ir *IPRanger) Contains(ipcidr string) bool
- func (ir *IPRanger) ContainsSkipExclude(ipcidr string) bool
- func (ir *IPRanger) CountExcludedIps() int
- func (ir *IPRanger) CountIPS() int
- func (ir *IPRanger) Delete(ipcidr string) error
- func (ir *IPRanger) Exclude(ipcidr string) error
- func (ir *IPRanger) GetFQDNByIP(ip string) ([]string, error)
- func (ir *IPRanger) HasIP(ip string) bool
- func (ir *IPRanger) IsExcluded(ipcidr string) bool
- func (ir *IPRanger) Len() int
- func (ir *IPRanger) LenExclude() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlackRock ¶
func NewBlackRock ¶
type IPRanger ¶
type IPRanger struct {
TotalIps uint64
Ranger cidranger.Ranger
TotalExcludeIps uint64
RangerExclude cidranger.Ranger
TotalFqdn uint64
Targets *hybrid.HybridMap
}
func (*IPRanger) ContainsSkipExclude ¶
func (*IPRanger) CountExcludedIps ¶
func (*IPRanger) IsExcluded ¶
func (*IPRanger) LenExclude ¶
Click to show internal directories.
Click to hide internal directories.