2015-10-06 17:11:08 -04:00
|
|
|
package config
|
|
|
|
|
2015-10-28 18:18:07 -04:00
|
|
|
type RouterConfig interface {
|
|
|
|
Strategy() string
|
|
|
|
Settings() interface{}
|
|
|
|
}
|
|
|
|
|
|
|
|
type ConnectionTag string
|
|
|
|
|
2015-09-19 09:07:10 -04:00
|
|
|
type ConnectionConfig interface {
|
2015-09-19 09:35:20 -04:00
|
|
|
Protocol() string
|
2015-10-29 18:35:54 -04:00
|
|
|
Settings() interface{}
|
2015-09-12 16:11:54 -04:00
|
|
|
}
|
|
|
|
|
2015-10-09 11:43:27 -04:00
|
|
|
type LogConfig interface {
|
|
|
|
AccessLog() string
|
|
|
|
}
|
|
|
|
|
2015-10-31 17:22:43 -04:00
|
|
|
type PortRange interface {
|
|
|
|
From() uint16
|
|
|
|
To() uint16
|
|
|
|
}
|
|
|
|
|
|
|
|
type InboundDetourConfig interface {
|
2015-10-31 09:08:13 -04:00
|
|
|
Protocol() string
|
2015-10-31 17:22:43 -04:00
|
|
|
PortRange() PortRange
|
|
|
|
Settings() interface{}
|
2015-10-31 09:08:13 -04:00
|
|
|
}
|
|
|
|
|
2015-09-19 09:07:10 -04:00
|
|
|
type PointConfig interface {
|
2015-09-19 09:35:20 -04:00
|
|
|
Port() uint16
|
2015-10-09 11:43:27 -04:00
|
|
|
LogConfig() LogConfig
|
2015-09-19 09:35:20 -04:00
|
|
|
InboundConfig() ConnectionConfig
|
|
|
|
OutboundConfig() ConnectionConfig
|
2015-10-31 17:22:43 -04:00
|
|
|
InboundDetours() []InboundDetourConfig
|
2015-09-12 16:11:54 -04:00
|
|
|
}
|