Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct { RemoteIP string `json:"ip" yaml:"ip" validate:"required,contains=."` RemotePort int `json:"port,string" yaml:"port" validate:"required,numeric,min=1,max=65535"` RemoteUsername string `json:"username" yaml:"username"` RemotePassword string `json:"password" yaml:"password"` WithAuth bool `json:"auth,string" yaml:"auth"` Enabled bool `json:"proxyActivation,string" yaml:"activated"` // contains filtered or unexported fields }
Proxy store all remote proxy configuration
func (*Proxy) LaunchLocalForwarder ¶
LaunchLocalForwarder launch an instance of proxy-login-automator (https://github.com/hbollon/proxy-login-automator) which starts a local forwarder proxy server in order to be able to automatically inject the "Proxy-Authorization" header to all outgoing Selenium requests and forward them to the remote proxy configured by the user.
func (*Proxy) RestartForwarderProxy ¶
RestartForwarderProxy check for running instance of proxy-login-automator, stop it if exist and finally start a new one
func (*Proxy) StopForwarderProxy ¶
func (p *Proxy) StopForwarderProxy()
StopForwarderProxy stop current running instance of proxy-login-automator
Click to show internal directories.
Click to hide internal directories.