mihomo/constant/rule.go
2018-06-10 22:50:03 +08:00

19 lines
217 B
Go

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
}