proxy

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: MIT Imports: 7 Imported by: 0

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
	Servers       map[string]net.Listener
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy() *Proxy

func (*Proxy) AddProxyForward

func (p *Proxy) AddProxyForward(name string, proxyForward *ProxyForward)

func (*Proxy) GetFirstProxyForward

func (p *Proxy) GetFirstProxyForward(name string) *ProxyForward

func (*Proxy) GetProxyForwardForForwardPort

func (p *Proxy) GetProxyForwardForForwardPort(name string, forwardPort string) *ProxyForward

func (*Proxy) GetProxyForwardForLocalPort

func (p *Proxy) GetProxyForwardForLocalPort(name string, localPort string) *ProxyForward

func (*Proxy) Listen

func (p *Proxy) Listen() error

type ProxyForward

type ProxyForward struct {
	Name        string
	Hostname    string
	LocalPort   string
	ForwardPort string
	ProxyPort   string
}

func NewProxyForward

func NewProxyForward(name, hostname, localPort, forwardPort string) *ProxyForward

func (*ProxyForward) GetProxifiedPorts

func (p *ProxyForward) GetProxifiedPorts() string

func (*ProxyForward) SetProxyPort

func (p *ProxyForward) SetProxyPort(port string)

Jump to

Keyboard shortcuts

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