ipsimplefilter

package
v5.3.3-pre29 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: AGPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

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

func NewFilter

func NewFilter() *Filter

func (*Filter) Allowed

func (f *Filter) Allowed(ip string) error

func (*Filter) Blocked

func (f *Filter) Blocked(ip string) error

func (*Filter) IsAllowed

func (f *Filter) IsAllowed(ip string) bool

type IPR

type IPR [2]net.IP

func New

func New(ip string) IPR

func (*IPR) Contains

func (i *IPR) Contains(trial net.IP) bool

func (*IPR) Parse

func (i *IPR) Parse(ip string)

Jump to

Keyboard shortcuts

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