config.go 481 B

12345678910111213141516171819202122232425262728293031
  1. package config
  2. type Type string
  3. const (
  4. TypeInbound = Type("inbound")
  5. TypeOutbound = Type("outbound")
  6. )
  7. type RouterConfig interface {
  8. Strategy() string
  9. Settings() interface{}
  10. }
  11. type ConnectionTag string
  12. type ConnectionConfig interface {
  13. Protocol() string
  14. Settings() interface{}
  15. }
  16. type LogConfig interface {
  17. AccessLog() string
  18. }
  19. type PointConfig interface {
  20. Port() uint16
  21. LogConfig() LogConfig
  22. InboundConfig() ConnectionConfig
  23. OutboundConfig() ConnectionConfig
  24. }