mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-27 12:35:39 +08:00
20 lines
637 B
Go
20 lines
637 B
Go
package geodata
|
|
|
|
import (
|
|
"github.com/Dreamacro/clash/component/geodata/router"
|
|
)
|
|
|
|
type LoaderImplementation interface {
|
|
LoadSiteByPath(filename, list string) ([]*router.Domain, error)
|
|
LoadSiteByBytes(geositeBytes []byte, list string) ([]*router.Domain, error)
|
|
LoadIPByPath(filename, country string) ([]*router.CIDR, error)
|
|
LoadIPByBytes(geoipBytes []byte, 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)
|
|
}
|