mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 05:31:18 +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
|
|
}
|