Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cidrs ¶
Cidrs is a slice of IPNet addresses
func ParseCIDRs ¶
ParseCIDRs parse IPNet addresses and return slice of its
type Config ¶
type Config struct { // TrustedSubnets declare IP subnets which are allowed to set ip using X-Real-Ip and X-Forwarded-For TrustedSubnets []string `mapstructure:"trusted_subnets"` }
func (*Config) InitDefaults ¶
Click to show internal directories.
Click to hide internal directories.