Documentation ¶ Index ¶ type Filter func NewFilter() *Filter func (f *Filter) Allowed(ip string) error func (f *Filter) Blocked(ip string) error func (f *Filter) IsAllowed(ip string) bool type IPR func New(ip string) IPR func (i *IPR) Contains(trial net.IP) bool func (i *IPR) Parse(ip string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Filter ¶ type Filter struct { // contains filtered or unexported fields } func NewFilter ¶ func NewFilter() *Filter func (*Filter) Allowed ¶ func (f *Filter) Allowed(ip string) error func (*Filter) Blocked ¶ func (f *Filter) Blocked(ip string) error func (*Filter) IsAllowed ¶ func (f *Filter) IsAllowed(ip string) bool type IPR ¶ type IPR [2]net.IP func New ¶ func New(ip string) IPR func (*IPR) Contains ¶ func (i *IPR) Contains(trial net.IP) bool func (*IPR) Parse ¶ func (i *IPR) Parse(ip string) Source Files ¶ View all Source files ipsimplefilter.go Click to show internal directories. Click to hide internal directories.