clash/component/geodata/geodataproto.go

19 lines
557 B
Go
Raw Normal View History

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