iptree

package
v0.0.0-...-21cfbab Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPTree

type IPTree struct {
	// contains filtered or unexported fields
}

func Intersect

func Intersect(a, b *IPTree) *IPTree

func New

func New(ipVersion int) *IPTree

func Subtract

func Subtract(a, b *IPTree) *IPTree

func (*IPTree) AddCIDR

func (t *IPTree) AddCIDR(cidr ip.CIDR)

func (*IPTree) AddCIDRString

func (t *IPTree) AddCIDRString(c string)

func (*IPTree) CoveringCIDRStrings

func (t *IPTree) CoveringCIDRStrings() (out []string)

func (*IPTree) CoveringCIDRs

func (t *IPTree) CoveringCIDRs() []ip.CIDR

Jump to

Keyboard shortcuts

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