Documentation ¶
Index ¶
- type Cidr
- func (c *Cidr[T]) Insert(cidr string, mark T) error
- func (c *Cidr[T]) InsertCIDR(ipNet netip.Prefix, mark T)
- func (c *Cidr[T]) InsertIP(ip netip.Addr, maskSize int, mark T)
- func (c *Cidr[T]) RemoveCIDR(ipNet netip.Prefix)
- func (c *Cidr[T]) RemoveIP(ipNet netip.Addr, maskSIze int)
- func (c *Cidr[T]) Search(ip string) (mark T, ok bool)
- func (c *Cidr[T]) SearchIP(ip net.IP) (mark T, ok bool)
- type Trie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cidr ¶
type Cidr[T any] struct { // contains filtered or unexported fields }
Cidr cidr matcher
func NewCidrMapper ¶
func (*Cidr[T]) InsertCIDR ¶
func (*Cidr[T]) RemoveCIDR ¶
Click to show internal directories.
Click to hide internal directories.