mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-16 06:01:21 +08:00
16 lines
464 B
Go
16 lines
464 B
Go
|
package geodata
|
||
|
|
||
|
import "github.com/Dreamacro/clash/rule/geodata/router"
|
||
|
|
||
|
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)
|
||
|
}
|