filter

package
v0.0.0-...-61732bf Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIDRFilter

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

CIDRFilter is a radix tree that holds filtered ips.

func MustNewCIDR

func MustNewCIDR(filtered []string) *CIDRFilter

MustNewCIDR returns a new CIDR filter.

func (*CIDRFilter) Allowed

func (f *CIDRFilter) Allowed(cidr string) (bool, error)

Allowed tells us if the input address/cidr is allowed.

Jump to

Keyboard shortcuts

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