Documentation ¶
Index ¶
- type IPFilter
- func (f *IPFilter) AllowIP(ip string) bool
- func (f *IPFilter) Allowed(ipstr string) bool
- func (f *IPFilter) BlockIP(ip string) bool
- func (f *IPFilter) Blocked(ip string) bool
- func (f *IPFilter) NetAllowed(ip net.IP) bool
- func (f *IPFilter) NetBlocked(ip net.IP) bool
- func (f *IPFilter) ToggleIP(str string, allowed bool) bool
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPFilter ¶
type IPFilter struct {
// contains filtered or unexported fields
}
IPFilter ...
func (*IPFilter) NetAllowed ¶
NetAllowed returns if a given net.IP can pass through the filter
func (*IPFilter) NetBlocked ¶
NetBlocked returns if a given net.IP can NOT pass through the filter
Click to show internal directories.
Click to hide internal directories.