mocks

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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