2021-07-01 22:49:29 +08:00
|
|
|
package geodata
|
|
|
|
|
2021-10-29 00:52:44 +08:00
|
|
|
import (
|
|
|
|
"github.com/Dreamacro/clash/component/geodata/router"
|
|
|
|
)
|
2021-07-01 22:49:29 +08:00
|
|
|
|
|
|
|
type LoaderImplementation interface {
|
|
|
|
LoadSite(filename, list string) ([]*router.Domain, error)
|
|
|
|
LoadIP(filename, country string) ([]*router.CIDR, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type Loader interface {
|
|
|
|
LoaderImplementation
|
|
|
|
LoadGeoSite(list string) ([]*router.Domain, error)
|
|
|
|
LoadGeoSiteWithAttr(file string, siteWithAttr string) ([]*router.Domain, error)
|
|
|
|
LoadGeoIP(country string) ([]*router.CIDR, error)
|
|
|
|
}
|