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]) EachContains(ip iputil.VpnIp, each eachFunc[T]) bool
- func (tree *Tree4[T]) GetCIDR(cidr *net.IPNet) (ok bool, value T)
- func (tree *Tree4[T]) List() []entry[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]) EachContains ¶
EachContains will call a function, passing the value, for each entry until the function returns true or the search is complete The final return value will be true if the provided function returned true
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.