filter

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	T_test = `test`
	T_bl   = `bl`
	T_wl   = `wl`
)

Variables

View Source
var (
	Rbls = []string{}
)

Functions

This section is empty.

Types

type Action

type Action struct {
	Toml      string
	Ip        string
	Msg       string
	Check_rbl bool
	Rbl       interface{}
}

type Filter

type Filter struct {
	Name              string
	Enabled           bool
	Action            string
	Tag               []string
	Re, Ignore        []*regexp.Regexp
	Rbl_use, Rbl_must bool
	// contains filtered or unexported fields
}

func New

func New(gg *gogroup.Group, bus *mbus.Bus, fn string, list *list.WB, rbls []string) (*Filter, error)

func (*Filter) Stop

func (o *Filter) Stop()

Call Stop() to shutdown

func (*Filter) Testdata

func (o *Filter) Testdata()

func (*Filter) UnmarshalTOML

func (o *Filter) UnmarshalTOML(data interface{}) error

type Get_it

type Get_it interface {
	In_list(ip net.IP) bool
}

Jump to

Keyboard shortcuts

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