firewall

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IP

type IP []string

func (IP) Allow

func (f IP) Allow(r *http.Request) bool

type List

type List []Wall

func (List) Allow

func (f List) Allow(r *http.Request) bool

type MatchFunc

type MatchFunc func(*http.Request) bool

func (MatchFunc) Allow

func (f MatchFunc) Allow(r *http.Request) bool

type Pass

type Pass struct{}

func (Pass) Allow

func (f Pass) Allow(r *http.Request) bool

type Wall

type Wall interface {
	Allow(*http.Request) bool
}

func Negate

func Negate(m Wall) Wall

Jump to

Keyboard shortcuts

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