Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortRange ¶
type PortRange struct {
Start, End uint16
}
PortRange represents a range of ports. Start and End are inclusive. [Start, End]
type PortUnion ¶
type PortUnion []PortRange
PortUnion is a collection of multiple port ranges.
func ParsePortUnion ¶
ParsePortUnion parses a string of comma-separated port ranges (or single ports) into a PortUnion. Returns nil if the input is invalid. The returned PortUnion is guaranteed to be normalized.
Click to show internal directories.
Click to hide internal directories.