mihomo/component/geodata/geodataproto.go

19 lines
557 B
Go
Raw Normal View History

2021-11-17 16:03:47 +08:00
package geodata
import (
2023-11-03 21:01:45 +08:00
"github.com/metacubex/mihomo/component/geodata/router"
2021-11-17 16:03:47 +08:00
)
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)
}