config.go 202 B

1234567891011121314
  1. package rules
  2. import (
  3. v2net "github.com/v2ray/v2ray-core/common/net"
  4. )
  5. type Rule interface {
  6. Tag() string
  7. Apply(dest v2net.Destination) bool
  8. }
  9. type RouterRuleConfig interface {
  10. Rules() []Rule
  11. }