Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPortInRange ¶
IsPortInRange checks if targetPort is between port and endPort (inclusive). If endPort is zero, it checks if targetPort equals port. It assumes that the provided port range is valid (see ValidatePortRange).
func ValidatePortRange ¶
ValidatePortRange checks if the given port range is within bounds. If endPort is not zero, it also checks if it's bigger than port. A port range with zero as endPort is assumed to describe a single port.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.