blacklist

package module
v0.0.0-...-6b75120 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blacklist

type Blacklist struct {
	T *iptree.IPTree
}

func New

func New() *Blacklist

func (*Blacklist) AddEntry

func (b *Blacklist) AddEntry(cidr string) error

func (*Blacklist) IsBlacklisted

func (b *Blacklist) IsBlacklisted(ip string) (bool, error)

func (*Blacklist) ParseFromFile

func (b *Blacklist) ParseFromFile(path string) error

Jump to

Keyboard shortcuts

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