proxy

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 5 Imported by: 0

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

func (p *Proxy) LaunchLocalForwarder() error

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

func (p *Proxy) RestartForwarderProxy() error

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

Jump to

Keyboard shortcuts

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