Clash.Meta/component/geodata/geodataproto.go

19 lines
556 B
Go
Raw Normal View History

2021-11-17 16:03:47 +08:00
package geodata
import (
"github.com/Dreamacro/clash/component/geodata/router"
)
type LoaderImplementation interface {
2022-06-03 16:50:05 +08:00
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)
2021-11-17 16:03:47 +08:00
}
type Loader interface {
LoaderImplementation
LoadGeoSite(list string) ([]*router.Domain, error)
LoadGeoIP(country string) ([]*router.CIDR, error)
}