forked from p4gefau1t/trojan-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: refine geodata loader (p4gefau1t#323)
- Loading branch information
1 parent
a9ce6d4
commit 531bc2b
Showing
5 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package geodata | ||
|
||
import v2router "github.com/v2fly/v2ray-core/v4/app/router" | ||
|
||
type GeodataLoader interface { | ||
LoadIP(filename, country string) ([]*v2router.CIDR, error) | ||
LoadSite(filename, list string) ([]*v2router.Domain, error) | ||
LoadGeoIP(country string) ([]*v2router.CIDR, error) | ||
LoadGeoSite(list string) ([]*v2router.Domain, error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters