whitelist

package
v0.0.0-...-1730ba2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package whitelist specifies a processor that matches the request with a whitelist

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

Processor is the whitelist's processor implementation

func New

func New() *Processor

New gives back a new instance of the whitelist processor

func (*Processor) Add

func (p *Processor) Add(r *net.IPNet)

Add a new address to the whitelist

func (*Processor) Process

func (p *Processor) Process(req *http.Request) (processor.Outcome, error)

Process an incoming request, matching its remote address with the white list

func (*Processor) String

func (p *Processor) String() string

Jump to

Keyboard shortcuts

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