clash/constant/rule.go

19 lines
217 B
Go
Raw Normal View History

2018-06-10 14:50:03 +00:00
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
}