mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 07:26:24 -05:00
18 lines
535 B
Go
18 lines
535 B
Go
|
package geodata
|
||
|
|
||
|
import "github.com/v2fly/v2ray-core/v4/app/router"
|
||
|
|
||
|
//go:generate go run github.com/v2fly/v2ray-core/v4/common/errors/errorgen
|
||
|
|
||
|
type LoaderImplementation interface {
|
||
|
LoadSite(filename, list string) ([]*router.Domain, error)
|
||
|
LoadIP(filename, country string) ([]*router.CIDR, error)
|
||
|
}
|
||
|
|
||
|
type Loader interface {
|
||
|
LoaderImplementation
|
||
|
LoadGeosite(list string) ([]*router.Domain, error)
|
||
|
LoadGeositeWithAttr(file string, siteWithAttr string) ([]*router.Domain, error)
|
||
|
LoadGeoIP(country string) ([]*router.CIDR, error)
|
||
|
}
|