github.com/v2fly/v2ray-core/v4@v4.45.2/infra/conf/geodata/geodataproto.go (about)

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