github.com/kelleygo/clashcore@v1.0.2/component/geodata/geodataproto.go (about) 1 package geodata 2 3 import ( 4 "github.com/kelleygo/clashcore/component/geodata/router" 5 ) 6 7 type LoaderImplementation interface { 8 LoadSiteByPath(filename, list string) ([]*router.Domain, error) 9 LoadSiteByBytes(geositeBytes []byte, list string) ([]*router.Domain, error) 10 LoadIPByPath(filename, country string) ([]*router.CIDR, error) 11 LoadIPByBytes(geoipBytes []byte, country string) ([]*router.CIDR, error) 12 } 13 14 type Loader interface { 15 LoaderImplementation 16 LoadGeoSite(list string) ([]*router.Domain, error) 17 LoadGeoIP(country string) ([]*router.CIDR, error) 18 }