mocks

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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) LogConfig

func (config *Config) LogConfig() config.LogConfig

func (*Config) OutboundConfig

func (config *Config) OutboundConfig() config.ConnectionConfig

func (*Config) OutboundDetours

func (this *Config) OutboundDetours() []config.OutboundDetourConfig

func (*Config) Port

func (config *Config) Port() uint16

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 LogConfig

type LogConfig struct {
	AccessLogValue string
}

func (*LogConfig) AccessLog

func (config *LogConfig) AccessLog() string

type OutboundDetourConfig

type OutboundDetourConfig struct {
	ConnectionConfig
	TagValue config.DetourTag
}

func (*OutboundDetourConfig) Tag

type PortRange

type PortRange struct {
	FromValue uint16
	ToValue   uint16
}

func (*PortRange) From

func (this *PortRange) From() uint16

func (*PortRange) To

func (this *PortRange) To() uint16

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL