Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address uint32
Using 32-bit integer to represent IPv4 address
func (Address) MarshalJSON ¶
type CIDR ¶
func RemoveCommon ¶
RemoveCommon filters out CIDR ranges which are contained in both a and b slices. Both slices have to be sorted in increasing order.
type Range ¶
type Range struct {
Start, End Address // [Start, End); Start <= End
}
func Merge ¶
Merge merges adjacent range entries. The given slice has to be sorted in increasing order.
func (Range) AsCIDRString ¶
func (Range) BiggestCIDRRange ¶
Click to show internal directories.
Click to hide internal directories.