Files
Archive/clash-rev/component/geodata/geodataproto.go
2024-03-05 02:32:38 -08:00

19 lines
561 B
Go

package geodata
import (
"github.com/MerlinKodo/clash-rev/component/geodata/router"
)
type LoaderImplementation interface {
LoadSiteByPath(filename, list string) ([]*router.Domain, error)
LoadSiteByBytes(geositeBytes []byte, list string) ([]*router.Domain, error)
LoadIPByPath(filename, country string) ([]*router.CIDR, error)
LoadIPByBytes(geoipBytes []byte, country string) ([]*router.CIDR, error)
}
type Loader interface {
LoaderImplementation
LoadGeoSite(list string) ([]*router.Domain, error)
LoadGeoIP(country string) ([]*router.CIDR, error)
}