config.go 448 B

1234567891011121314151617181920212223242526272829
  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 InboundDetour interface {
  15. Protocol() string
  16. Port()
  17. }
  18. type PointConfig interface {
  19. Port() uint16
  20. LogConfig() LogConfig
  21. InboundConfig() ConnectionConfig
  22. OutboundConfig() ConnectionConfig
  23. }