Documentation ¶
Overview ¶
Package ip provides validation and parsing utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoAddress is returned when no address is provided. ErrNoAddress = errors.New("no adddress provided") // ErrPortInvalid is returned when the provided port is below 0. ErrPortInvalid = errors.New("port must be >= 0") // ErrInvalidIP is returned an invalid IP is provided. ErrInvalidIP = errors.New("invalid IP provided, must be between 0 and 65535") )
Functions ¶
func GetHTTP3Network ¶
GetHTTP3Network maps tcp -> udp.
func RegisterNetworkHTTP3 ¶
func RegisterNetworkHTTP3(originalNetwork, h3Network string)
RegisterNetworkHTTP3 registers a mapping from non-HTTP/3 network to HTTP/3 network. This should be called during init() and will panic if the network type is standard, reserved, or already registered.
EXPERIMENTAL: Subject to change.
func ValidateAddress ¶
ValidateAddress will do basic validation on an address string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.