Proxy

package
v0.0.0-...-3e0a51a Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const (
	PROXY_TYPE_NONE = iota
	PROXY_TYPE_HTTP
	PROXY_TYPE_HTTPS
	PROXY_TYPE_SOCKS4
	PROXY_TYPE_SOCKS4A
	PROXY_TYPE_SOCKS5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TProxy

type TProxy struct {
	ObjError *mwError.TError // Error Object
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(errObj *mwError.TError) *TProxy

func (*TProxy) CancelProxy

func (self *TProxy) CancelProxy()

func (*TProxy) Enable

func (self *TProxy) Enable() bool

func (*TProxy) GetBase64Authorization

func (self *TProxy) GetBase64Authorization() string

func (*TProxy) GetProxyIP

func (self *TProxy) GetProxyIP() (string, string)

func (*TProxy) GetProxyType

func (self *TProxy) GetProxyType() int

func (*TProxy) GetProxyUserPwd

func (self *TProxy) GetProxyUserPwd() (string, string)

func (*TProxy) SetProxyIP

func (self *TProxy) SetProxyIP(IP string, Port string)

func (*TProxy) SetProxyType

func (self *TProxy) SetProxyType(pType int)

func (*TProxy) SetProxyUserPwd

func (self *TProxy) SetProxyUserPwd(User string, Password string)

Jump to

Keyboard shortcuts

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