config.go 744 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package config
  2. import (
  3. routerconfig "github.com/v2ray/v2ray-core/app/router/config"
  4. v2net "github.com/v2ray/v2ray-core/common/net"
  5. )
  6. type ConnectionConfig interface {
  7. Protocol() string
  8. Settings() interface{}
  9. }
  10. type LogConfig interface {
  11. AccessLog() string
  12. }
  13. type InboundDetourConfig interface {
  14. Protocol() string
  15. PortRange() v2net.PortRange
  16. Settings() interface{}
  17. }
  18. type OutboundDetourConfig interface {
  19. Protocol() string
  20. Tag() string
  21. Settings() interface{}
  22. }
  23. type PointConfig interface {
  24. Port() v2net.Port
  25. LogConfig() LogConfig
  26. RouterConfig() routerconfig.RouterConfig
  27. InboundConfig() ConnectionConfig
  28. OutboundConfig() ConnectionConfig
  29. InboundDetours() []InboundDetourConfig
  30. OutboundDetours() []OutboundDetourConfig
  31. }