Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Condition ¶
Condition is just bool condition for whitelisting IP addresses.
func AND ¶
AND is an array of conditions with logic AND. If no condition is passed it returns false.
func IsPrivate ¶
func IsPrivate() Condition
IsPrivate is condition that returns true only for IPs from a private network (VPN, localhost).
func IsWhitelisted ¶
IsWhitelisted is an condition that returns true only for IPs from specified IP/network range.
Click to show internal directories.
Click to hide internal directories.