Documentation ¶
Index ¶
- type Config
- func (config *Config) InboundConfig() config.ConnectionConfig
- func (this *Config) InboundDetours() []config.InboundDetourConfig
- func (config *Config) LogConfig() config.LogConfig
- func (config *Config) OutboundConfig() config.ConnectionConfig
- func (this *Config) OutboundDetours() []config.OutboundDetourConfig
- func (config *Config) Port() uint16
- func (this *Config) RouterConfig() routerconfig.RouterConfig
- type ConnectionConfig
- type InboundDetourConfig
- type LogConfig
- type OutboundDetourConfig
- type PortRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PortValue uint16 LogConfigValue *LogConfig RouterConfigValue routerconfig.RouterConfig InboundConfigValue *ConnectionConfig OutboundConfigValue *ConnectionConfig InboundDetoursValue []*InboundDetourConfig OutboundDetoursValue []*OutboundDetourConfig }
func (*Config) InboundConfig ¶
func (config *Config) InboundConfig() config.ConnectionConfig
func (*Config) InboundDetours ¶
func (this *Config) InboundDetours() []config.InboundDetourConfig
func (*Config) OutboundConfig ¶
func (config *Config) OutboundConfig() config.ConnectionConfig
func (*Config) OutboundDetours ¶
func (this *Config) OutboundDetours() []config.OutboundDetourConfig
func (*Config) RouterConfig ¶
func (this *Config) RouterConfig() routerconfig.RouterConfig
type ConnectionConfig ¶
type ConnectionConfig struct { ProtocolValue string SettingsValue interface{} }
func (*ConnectionConfig) Protocol ¶
func (config *ConnectionConfig) Protocol() string
func (*ConnectionConfig) Settings ¶
func (config *ConnectionConfig) Settings() interface{}
type InboundDetourConfig ¶
type InboundDetourConfig struct { ConnectionConfig PortRangeValue *PortRange }
func (*InboundDetourConfig) PortRange ¶
func (this *InboundDetourConfig) PortRange() v2net.PortRange
type OutboundDetourConfig ¶
type OutboundDetourConfig struct { ConnectionConfig TagValue config.DetourTag }
func (*OutboundDetourConfig) Tag ¶
func (this *OutboundDetourConfig) Tag() config.DetourTag
Click to show internal directories.
Click to hide internal directories.