mocks

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2015 License: MIT Imports: 5 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            v2net.Port
	LogConfigValue       *LogConfig
	RouterConfigValue    *routertesting.RouterConfig
	InboundConfigValue   *ConnectionConfig
	OutboundConfigValue  *ConnectionConfig
	InboundDetoursValue  []*InboundDetourConfig
	OutboundDetoursValue []*OutboundDetourConfig
}

func (*Config) InboundConfig

func (this *Config) InboundConfig() point.ConnectionConfig

func (*Config) InboundDetours

func (this *Config) InboundDetours() []point.InboundDetourConfig

func (*Config) LogConfig

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

func (*Config) OutboundConfig

func (this *Config) OutboundConfig() point.ConnectionConfig

func (*Config) OutboundDetours

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

func (*Config) Port

func (config *Config) Port() v2net.Port

func (*Config) RouterConfig

func (this *Config) RouterConfig() router.Config

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
	TagValue       string
}

func (*InboundDetourConfig) PortRange

func (this *InboundDetourConfig) PortRange() v2net.PortRange

func (*InboundDetourConfig) Tag

func (this *InboundDetourConfig) Tag() string

type LogConfig

type LogConfig struct {
	AccessLogValue string
	ErrorLogValue  string
	LogLevelValue  log.LogLevel
}

func (*LogConfig) AccessLog

func (config *LogConfig) AccessLog() string

func (*LogConfig) ErrorLog

func (this *LogConfig) ErrorLog() string

func (*LogConfig) LogLevel

func (this *LogConfig) LogLevel() log.LogLevel

type OutboundDetourConfig

type OutboundDetourConfig struct {
	*ConnectionConfig
	TagValue string
}

func (*OutboundDetourConfig) Tag

func (this *OutboundDetourConfig) Tag() string

type PortRange

type PortRange struct {
	FromValue v2net.Port
	ToValue   v2net.Port
}

func (*PortRange) From

func (this *PortRange) From() v2net.Port

func (*PortRange) To

func (this *PortRange) To() v2net.Port

Jump to

Keyboard shortcuts

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