config.go 320 B

12345678910111213141516171819
  1. package config
  2. type Type string
  3. const (
  4. TypeInbound = Type("inbound")
  5. TypeOutbound = Type("outbound")
  6. )
  7. type ConnectionConfig interface {
  8. Protocol() string
  9. Settings(configType Type) interface{}
  10. }
  11. type PointConfig interface {
  12. Port() uint16
  13. InboundConfig() ConnectionConfig
  14. OutboundConfig() ConnectionConfig
  15. }