filter

package
v0.0.0-...-a18f4d6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	Add(net.IPNet) error
	Contains(net.IP) bool
}

Filter allows to whether an IP address is present in a set of IP addresses or subnets (in CIDR notation).

func New

func New(filterType string, subnets []net.IPNet) (Filter, error)

New creates a Filter.

Jump to

Keyboard shortcuts

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