subnet

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package subnet groups client addresses the way limits count them.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL