Init: first commit 🎉

This commit is contained in:
Dreamacro
2018-06-10 22:50:03 +08:00
parent 8532718345
commit 4f192ef575
27 changed files with 1451 additions and 0 deletions

18
constant/rule.go Normal file
View File

@ -0,0 +1,18 @@
package constant
// Rule Type
const (
DomainSuffix RuleType = iota
DomainKeyword
GEOIP
IPCIDR
FINAL
)
type RuleType int
type Rule interface {
RuleType() RuleType
IsMatch(addr *Addr) bool
Adapter() string
}