Documentation ¶ Index ¶ func Middleware(next http.Handler, rules RuleSet) http.Handler type RuleSet func Parse(rules []string) (RuleSet, error) func (r RuleSet) Allows(ip net.IP) bool func (r RuleSet) Enabled() bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Middleware ¶ func Middleware(next http.Handler, rules RuleSet) http.Handler Types ¶ type RuleSet ¶ type RuleSet struct { // contains filtered or unexported fields } func Parse ¶ func Parse(rules []string) (RuleSet, error) func (RuleSet) Allows ¶ func (r RuleSet) Allows(ip net.IP) bool func (RuleSet) Enabled ¶ func (r RuleSet) Enabled() bool Source Files ¶ View all Source files access.go Click to show internal directories. Click to hide internal directories.