2015-10-06 17:11:08 -04:00
|
|
|
package config
|
|
|
|
|
|
|
|
type Type string
|
|
|
|
|
|
|
|
const (
|
|
|
|
TypeInbound = Type("inbound")
|
|
|
|
TypeOutbound = Type("outbound")
|
|
|
|
)
|
2015-09-12 16:11:54 -04:00
|
|
|
|
2015-09-19 09:07:10 -04:00
|
|
|
type ConnectionConfig interface {
|
2015-09-19 09:35:20 -04:00
|
|
|
Protocol() string
|
2015-10-06 17:11:08 -04:00
|
|
|
Settings(configType Type) interface{}
|
2015-09-12 16:11:54 -04:00
|
|
|
}
|
|
|
|
|
2015-09-19 09:07:10 -04:00
|
|
|
type PointConfig interface {
|
2015-09-19 09:35:20 -04:00
|
|
|
Port() uint16
|
|
|
|
InboundConfig() ConnectionConfig
|
|
|
|
OutboundConfig() ConnectionConfig
|
2015-09-12 16:11:54 -04:00
|
|
|
}
|