package
0.0.0-20240827045243-13a6da0b124d
Repository: https://github.com/forhsd/postgresql-parser.git
Documentation: pkg.go.dev

# Functions

ParseINet parses postgres style INET types.
RandIPAddr generates a random IPAddr.

# Constants

IPv4family is for IPs in the IPv4 space.
IPv4mappedIPv6prefix is the byte prefix for IPv4-mapped IPv6.
IPv4mask is used to select only the lower 32 bits of uint128.
IPv4max is used for overflows.
IPv4size 1 byte for family, 1 byte for mask, 4 for IP.
IPv6family is for IPs in the IPv6 space.
IPv6size 1 byte for family, 1 byte for mask, 16 for IP.

# Structs

IPAddr stores an IP address's family, IP, and host mask.

# Type aliases

Addr is the representation of the IP address.
IPFamily denotes which classification the IP belongs to.