ipsecurity

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPSecurity

type IPSecurity struct {
	BlockByDefault bool
	TrustedProxies []string
	AllowIPs       []string
	BlockIPs       []string
	AllowCountries []string
	BlockCountries []string
}

func Handler

func Handler() *IPSecurity

func NewIPSecurity

func NewIPSecurity() *IPSecurity

func (*IPSecurity) LoadPolicyFile

func (ip *IPSecurity) LoadPolicyFile(policyYamlPath string) error

func (*IPSecurity) SetupIPSecurityPolicy

func (ip *IPSecurity) SetupIPSecurityPolicy(handler http.Handler) http.Handler

Jump to

Keyboard shortcuts

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