config.go 591 B

123456789101112131415161718192021222324252627282930313233343536
  1. package config
  2. type RouterConfig interface {
  3. Strategy() string
  4. Settings() interface{}
  5. }
  6. type ConnectionTag string
  7. type ConnectionConfig interface {
  8. Protocol() string
  9. Settings() interface{}
  10. }
  11. type LogConfig interface {
  12. AccessLog() string
  13. }
  14. type PortRange interface {
  15. From() uint16
  16. To() uint16
  17. }
  18. type InboundDetourConfig interface {
  19. Protocol() string
  20. PortRange() PortRange
  21. Settings() interface{}
  22. }
  23. type PointConfig interface {
  24. Port() uint16
  25. LogConfig() LogConfig
  26. InboundConfig() ConnectionConfig
  27. OutboundConfig() ConnectionConfig
  28. InboundDetours() []InboundDetourConfig
  29. }