proxy

package
v0.0.0-...-88b4fc5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSupportProxyType = errors.New("not support proxy type")
)
View Source
var ProxyType2ProxyMaker map[ProxyType]makeProxyFunc = map[ProxyType]makeProxyFunc{
	TypeSocks5Proxy: NewSocks5Proxy,
}

Functions

This section is empty.

Types

type Proxy

type Proxy interface {
	Start() error
	Stop() error
}

func NewProxy

func NewProxy(t ProxyType, config *ProxyConfig) (Proxy, error)

func NewSocks5Proxy

func NewSocks5Proxy(config *ProxyConfig) Proxy

type ProxyConfig

type ProxyConfig struct {
	Host         string
	Port         string
	FileHostPort string
}

type ProxyType

type ProxyType int
const (
	TypeSocks5Proxy ProxyType = iota
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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