Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGeoDataLoaderImplementationCreator ¶
func RegisterGeoDataLoaderImplementationCreator(name string, loader func() LoaderImplementation)
Types ¶
type AttributeList ¶
type AttributeList struct {
// contains filtered or unexported fields
}
func (*AttributeList) IsEmpty ¶
func (al *AttributeList) IsEmpty() bool
func (*AttributeList) Match ¶
func (al *AttributeList) Match(domain *routercommon.Domain) bool
type AttributeMatcher ¶
type AttributeMatcher interface {
Match(*routercommon.Domain) bool
}
type BooleanMatcher ¶
type BooleanMatcher string
func (BooleanMatcher) Match ¶
func (m BooleanMatcher) Match(domain *routercommon.Domain) bool
type Loader ¶
type Loader interface { LoaderImplementation LoadGeoSite(list string) ([]*routercommon.Domain, error) LoadGeoSiteWithAttr(file string, siteWithAttr string) ([]*routercommon.Domain, error) LoadGeoIP(country string) ([]*routercommon.CIDR, error) }
func GetGeoDataLoader ¶
type LoaderImplementation ¶
type LoaderImplementation interface { LoadSite(filename, list string) ([]*routercommon.Domain, error) LoadIP(filename, country string) ([]*routercommon.CIDR, error) }
Click to show internal directories.
Click to hide internal directories.