Versions in this module Expand all Collapse all v1 v1.0.0 Aug 29, 2019 Changes in this version + func Setup(c *caddy.Controller) error + type ByLength []string + func (s ByLength) Len() int + func (s ByLength) Less(i, j int) bool + func (s ByLength) Swap(i, j int) + type IPFConfig struct + DBHandler *maxminddb.Reader + Paths []IPPath + type IPFilter struct + Config IPFConfig + Next httpserver.Handler + func (ipf IPFilter) PrefixDirBlocked(clientIP net.IP, path IPPath) bool + func (ipf IPFilter) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) + func (ipf IPFilter) ShouldAllow(path IPPath, r *http.Request) (bool, string, error) + type IPPath struct + BlockPage string + CountryCodes []string + IsBlock bool + Nets []*net.IPNet + PathScopes []string + PrefixDir string + Strict bool + type OnlyCountry struct + Country struct{ ... } + type Status struct + func (s *Status) Any() bool