Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CIDRFilter ¶
type CIDRFilter struct {
// contains filtered or unexported fields
}
CIDRFilter is an ip filter base on cidranger
func (*CIDRFilter) Allow ¶
func (f *CIDRFilter) Allow(ip string) bool
Allow implement IPFilter.Allow
type IPFilter ¶
IPFilter is a interface for allow or deny an ip
func NewIPFilter ¶
NewIPFilter create a cidranger base ip filter
type NoopFilter ¶
type NoopFilter struct{}
NoopFilter noop, allow always, never deny
func (*NoopFilter) Allow ¶
func (noop *NoopFilter) Allow(_ string) bool
Allow implement IPFilter.Allow
Click to show internal directories.
Click to hide internal directories.