github.com/yaling888/clash@v1.53.0/component/geodata/geodataproto.go (about)

     1  package geodata
     2  
     3  import (
     4  	"github.com/yaling888/clash/component/geodata/router"
     5  )
     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  }