2015-10-06 21:11:08 +00:00
|
|
|
package config
|
|
|
|
|
2015-11-13 22:43:58 +00:00
|
|
|
type DetourTag string
|
2015-10-28 22:18:07 +00:00
|
|
|
|
2015-09-19 13:07:10 +00:00
|
|
|
type ConnectionConfig interface {
|
2015-09-19 13:35:20 +00:00
|
|
|
Protocol() string
|
2015-10-29 22:35:54 +00:00
|
|
|
Settings() interface{}
|
2015-09-12 20:11:54 +00:00
|
|
|
}
|
|
|
|
|
2015-10-09 15:43:27 +00:00
|
|
|
type LogConfig interface {
|
|
|
|
AccessLog() string
|
|
|
|
}
|
|
|
|
|
2015-10-31 21:22:43 +00:00
|
|
|
type PortRange interface {
|
|
|
|
From() uint16
|
|
|
|
To() uint16
|
|
|
|
}
|
|
|
|
|
|
|
|
type InboundDetourConfig interface {
|
2015-10-31 13:08:13 +00:00
|
|
|
Protocol() string
|
2015-10-31 21:22:43 +00:00
|
|
|
PortRange() PortRange
|
|
|
|
Settings() interface{}
|
2015-10-31 13:08:13 +00:00
|
|
|
}
|
|
|
|
|
2015-11-13 22:43:58 +00:00
|
|
|
type OutboundDetourConfig interface {
|
|
|
|
Protocol() string
|
|
|
|
Tag() DetourTag
|
|
|
|
Settings() interface{}
|
|
|
|
}
|
|
|
|
|
2015-09-19 13:07:10 +00:00
|
|
|
type PointConfig interface {
|
2015-09-19 13:35:20 +00:00
|
|
|
Port() uint16
|
2015-10-09 15:43:27 +00:00
|
|
|
LogConfig() LogConfig
|
2015-09-19 13:35:20 +00:00
|
|
|
InboundConfig() ConnectionConfig
|
|
|
|
OutboundConfig() ConnectionConfig
|
2015-10-31 21:22:43 +00:00
|
|
|
InboundDetours() []InboundDetourConfig
|
2015-09-12 20:11:54 +00:00
|
|
|
}
|