Documentation ¶ Overview ¶ Package subnet groups client addresses the way limits count them. Index ¶ func Of(ip netip.Addr) netip.Prefix Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Of ¶ func Of(ip netip.Addr) netip.Prefix Of returns the group a client address is counted in: an IPv4 address alone, an IPv6 address with the rest of its /64, which one subscriber usually holds whole and can rotate through at will. Without an address, the group is the unspecified one. Types ¶ This section is empty. Source Files ¶ View all Source files subnet.go Click to show internal directories. Click to hide internal directories.