mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 19:56:51 +08:00
19 lines
217 B
Go
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
|
|
}
|