proxy

package
v0.0.0-...-73df0bb Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DialFunc

type DialFunc func(network, address string) (net.Conn, error)

type HostKeyGetter

type HostKeyGetter struct {
	// contains filtered or unexported fields
}

func NewHostKeyGetter

func NewHostKeyGetter() HostKeyGetter

func (HostKeyGetter) Get

func (h HostKeyGetter) Get(key, serverURL string) (ssh.PublicKey, error)

type KeyGetter

type KeyGetter interface {
	Get(string, string) (ssh.PublicKey, error)
}

type Proxy

type Proxy interface {
	Start(string, string) error
	Addr() (string, error)
}

type Socks5Proxy

type Socks5Proxy struct {
	// contains filtered or unexported fields
}

func NewSocks5Proxy

func NewSocks5Proxy(hostKeyGetter KeyGetter) *Socks5Proxy

func (*Socks5Proxy) Addr

func (s *Socks5Proxy) Addr() (string, error)

func (*Socks5Proxy) Dialer

func (s *Socks5Proxy) Dialer(key, url string) (DialFunc, error)

func (*Socks5Proxy) Start

func (s *Socks5Proxy) Start(key, url string) error

func (*Socks5Proxy) StartWithDialer

func (s *Socks5Proxy) StartWithDialer(dialer DialFunc) error

Jump to

Keyboard shortcuts

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