checkresolv

package
v0.0.0-...-d34b96b Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ActionClass registered
	ActionClass = "nfq/checkresolv"
)

Variables

This section is empty.

Functions

func Builder

func Builder() actionb.BuildFn

Builder returns a builder function

Types

type Action

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

Action register nfqueue hooks to check ips

func New

New creates a new action

func (*Action) GetID

func (a *Action) GetID() string

GetID returns action id

func (*Action) RegisterHooks

func (a *Action) RegisterHooks(hooks *nfqueue.Hooks)

RegisterHooks adds hooks to nfqueue process

type Config

type Config struct {
	Policy    action.RuleSet
	LocalNets []*net.IPNet
}

Config sets configuration

Jump to

Keyboard shortcuts

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