Documentation
¶
Index ¶
- func Parse(s string) *net.IPNet
- type Node
- type Tree4
- func (tree *Tree4[T]) AddCIDR(cidr *net.IPNet, val T)
- func (tree *Tree4[T]) Contains(ip iputil.VpnIp) (ok bool, value T)
- func (tree *Tree4[T]) List() []entry[T]
- func (tree *Tree4[T]) Match(ip iputil.VpnIp) (ok bool, value T)
- func (tree *Tree4[T]) MostSpecificContains(ip iputil.VpnIp) (ok bool, value T)
- type Tree6
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tree4 ¶
type Tree4[T any] struct { // contains filtered or unexported fields }
func (*Tree4[T]) List ¶ added in v1.7.0
func (tree *Tree4[T]) List() []entry[T]
List will return all CIDRs and their current values. Do not modify the contents!
type Tree6 ¶
type Tree6[T any] struct { // contains filtered or unexported fields }
func (*Tree6[T]) MostSpecificContains ¶
Finds the most specific match
func (*Tree6[T]) MostSpecificContainsIpV4 ¶
func (*Tree6[T]) MostSpecificContainsIpV6 ¶
Click to show internal directories.
Click to hide internal directories.