iptree

package
v0.0.0-...-d4e6326 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: Apache-2.0 Imports: 2 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPTree

type IPTree struct {
	R *nradix.Tree
}

func New

func New() *IPTree

func (*IPTree) Add

func (i *IPTree) Add(cidr *net.IPNet, v interface{}) error

func (*IPTree) AddByString

func (i *IPTree) AddByString(ipcidr string, v interface{}) error

func (*IPTree) DeleteByString

func (i *IPTree) DeleteByString(ipstr string) error

func (*IPTree) Get

func (i *IPTree) Get(ip net.IP) (interface{}, bool, error)

func (*IPTree) GetByString

func (i *IPTree) GetByString(ipstr string) (interface{}, bool, error)

Jump to

Keyboard shortcuts

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