v2ray-core/app/router/rules/config.go

15 lines
202 B
Go
Raw Normal View History

2015-12-07 21:47:47 +00:00
package rules
2015-11-21 20:43:40 +00:00
import (
v2net "github.com/v2ray/v2ray-core/common/net"
)
type Rule interface {
Tag() string
2015-11-21 20:43:40 +00:00
Apply(dest v2net.Destination) bool
}
2015-12-07 21:47:47 +00:00
type RouterRuleConfig interface {
Rules() []Rule
}