github.com/ipfans/trojan-go@v0.11.0/common/geodata/interface.go (about) 1 package geodata 2 3 import v2router "github.com/v2fly/v2ray-core/v4/app/router" 4 5 type GeodataLoader interface { 6 LoadIP(filename, country string) ([]*v2router.CIDR, error) 7 LoadSite(filename, list string) ([]*v2router.Domain, error) 8 LoadGeoIP(country string) ([]*v2router.CIDR, error) 9 LoadGeoSite(list string) ([]*v2router.Domain, error) 10 }