1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 09:56:18 -05:00
v2fly/app/router/rules/config.go

15 lines
202 B
Go
Raw Normal View History

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