Init: first commit 🎉
This commit is contained in:
18
constant/rule.go
Normal file
18
constant/rule.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user