Versions in this module Expand all Collapse all v1 v1.0.2 Apr 25, 2024 v1.0.1 Apr 24, 2024 Changes in this version + var AutoUpdate bool + var UpdateInterval int + func ClearCache() + func GeoAutoUpdate() bool + func GeoUpdateInterval() int + func GeodataMode() bool + func InitASN() error + func InitGeoIP() error + func InitGeoSite() error + func LoadGeoIPMatcher(country string) (*router.GeoIPMatcher, int, error) + func LoadGeoSiteMatcher(countryCode string) (router.DomainMatcher, int, error) + func LoaderName() string + func RegisterGeoDataLoaderImplementationCreator(name string, loader func() LoaderImplementation) + func SetGeoAutoUpdate(newAutoUpdate bool) + func SetGeoUpdateInterval(newGeoUpdateInterval int) + func SetGeodataMode(newGeodataMode bool) + func SetLoader(newLoader string) + func SetSiteMatcher(newMatcher string) + func SiteMatcherName() string + func Verify(name string) error + 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) + func GetGeoDataLoader(name string) (Loader, error) + type LoaderImplementation interface + LoadIPByBytes func(geoipBytes []byte, country string) ([]*router.CIDR, error) + LoadIPByPath func(filename, country string) ([]*router.CIDR, error) + LoadSiteByBytes func(geositeBytes []byte, list string) ([]*router.Domain, error) + LoadSiteByPath func(filename, list string) ([]*router.Domain, error)