mirror of https://github.com/v2ray/v2ray-core
15 lines
202 B
Go
15 lines
202 B
Go
![]() |
package rules
|
||
![]() |
|
||
|
import (
|
||
|
v2net "github.com/v2ray/v2ray-core/common/net"
|
||
|
)
|
||
|
|
||
|
type Rule interface {
|
||
![]() |
Tag() string
|
||
![]() |
Apply(dest v2net.Destination) bool
|
||
|
}
|
||
![]() |
|
||
|
type RouterRuleConfig interface {
|
||
|
Rules() []Rule
|
||
|
}
|