Documentation
¶
Index ¶
Constants ¶
View Source
const (
ProxyPortStart = "9400"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct { ProxyForwards map[string][]*ProxyForward // contains filtered or unexported fields }
func (*Proxy) AddProxyForward ¶
func (p *Proxy) AddProxyForward(name string, proxyForward *ProxyForward)
AddProxyForward creates a new ProxyForward instance and attributes an IP address and a proxy port to it
type ProxyForward ¶
type ProxyForward struct { Name string Hostname string LocalPort string ForwardPort string LocalIP string ProxyPort string }
func NewProxyForward ¶
func NewProxyForward(name, hostname, localPort, forwardPort string) *ProxyForward
func (*ProxyForward) GetHostname ¶ added in v0.0.4
func (p *ProxyForward) GetHostname() string
func (*ProxyForward) GetProxifiedPorts ¶
func (p *ProxyForward) GetProxifiedPorts() string
func (*ProxyForward) SetLocalIP ¶ added in v0.0.4
func (p *ProxyForward) SetLocalIP(ip string)
func (*ProxyForward) SetProxyPort ¶
func (p *ProxyForward) SetProxyPort(port string)
type ProxyInterface ¶ added in v0.0.8
type ProxyInterface interface { Listen() error Stop() error AddProxyForward(name string, proxyForward *ProxyForward) }
Click to show internal directories.
Click to hide internal directories.