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
Click to show internal directories.
Click to hide internal directories.