package ipset
import "tailscale.com/net/ipset"
Package ipset provides code for creating efficient IP-in-set lookup functions with different implementations depending on the set.
Index ¶
- func FalseContainsIPFunc() func(ip netip.Addr) bool
- func NewContainsIPFunc(addrs views.Slice[netip.Prefix]) func(ip netip.Addr) bool
Functions ¶
func FalseContainsIPFunc ¶
FalseContainsIPFunc is shorthand for NewContainsIPFunc(views.Slice[netip.Prefix]{}).
func NewContainsIPFunc ¶
NewContainsIPFunc returns a func that reports whether ip is in addrs.
The returned func is optimized for the length of contents of addrs.
Source Files ¶
ipset.go
- Version
- v1.84.1 (latest)
- Published
- May 29, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 2 days ago –
Tools for package owners.