mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-26 12:15:44 +08:00
18 lines
474 B
Go
18 lines
474 B
Go
package geodata
|
|
|
|
import (
|
|
"github.com/Dreamacro/clash/component/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)
|
|
}
|