package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 15, 2019
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IP2Int converts a IPv4 address to it's unsigned integer representation
Int2IP converts a uint32 to it's IPv4 representation
IPRange is a range of IP address from (inclusive) start to (inclusive)
end IP.
DeleteFrom deletes a range from a set of IP ranges. The range to delte may span multiple
ip ranges
Merge merges multiple IP ranges and combins overlapping ranges
ByIdx returns the IP address at the given index
Clone returns a deep copy of the IP range
Contains checks if ip is part of the range
Len returns the number of IP address available inside the range
Validate the IP range and return any error encountered
IPRanges is a slice of IPRange and implements the sort.Interface.
Ranges are sorted by increasing start IP
Contains reports whether on of the IP ranges contains the
IP in question
Len implements sort.Interface
Less implements sort.Interface
Swap implements sort.Interface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.