github.com/imannamdari/v2ray-core/v5@v5.0.5/infra/conf/geodata/geodataproto.go (about) 1 package geodata 2 3 import ( 4 "github.com/imannamdari/v2ray-core/v5/app/router/routercommon" 5 ) 6 7 //go:generate go run github.com/imannamdari/v2ray-core/v5/common/errors/errorgen 8 9 type LoaderImplementation interface { 10 LoadSite(filename, list string) ([]*routercommon.Domain, error) 11 LoadIP(filename, country string) ([]*routercommon.CIDR, error) 12 } 13 14 type Loader interface { 15 LoaderImplementation 16 LoadGeoSite(list string) ([]*routercommon.Domain, error) 17 LoadGeoSiteWithAttr(file string, siteWithAttr string) ([]*routercommon.Domain, error) 18 LoadGeoIP(country string) ([]*routercommon.CIDR, error) 19 }