mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-10 06:16:53 -05:00
20 lines
583 B
Go
20 lines
583 B
Go
package geodata
|
|
|
|
import (
|
|
"github.com/v2fly/v2ray-core/v5/app/router/routercommon"
|
|
)
|
|
|
|
//go:generate go run github.com/v2fly/v2ray-core/v5/common/errors/errorgen
|
|
|
|
type LoaderImplementation interface {
|
|
LoadSite(filename, list string) ([]*routercommon.Domain, error)
|
|
LoadIP(filename, country string) ([]*routercommon.CIDR, error)
|
|
}
|
|
|
|
type Loader interface {
|
|
LoaderImplementation
|
|
LoadGeoSite(list string) ([]*routercommon.Domain, error)
|
|
LoadGeoSiteWithAttr(file string, siteWithAttr string) ([]*routercommon.Domain, error)
|
|
LoadGeoIP(country string) ([]*routercommon.CIDR, error)
|
|
}
|