Versions in this module Expand all Collapse all v4 v4.40.11 Jun 23, 2021 Changes in this version + func RegisterGeoDataLoaderImplementationCreator(name string, loader func() LoaderImplementation) + type AttributeList struct + func (al *AttributeList) IsEmpty() bool + func (al *AttributeList) Match(domain *router.Domain) bool + type AttributeMatcher interface + Match func(*router.Domain) bool + type BooleanMatcher string + func (m BooleanMatcher) Match(domain *router.Domain) bool + type Loader interface + LoadGeoIP func(country string) ([]*router.CIDR, error) + LoadGeoSite func(list string) ([]*router.Domain, error) + LoadGeoSiteWithAttr func(file string, siteWithAttr string) ([]*router.Domain, error) + func GetGeoDataLoader(name string) (Loader, error) + type LoaderImplementation interface + LoadIP func(filename, country string) ([]*router.CIDR, error) + LoadSite func(filename, list string) ([]*router.Domain, error)