proxy

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyHandler

type ProxyHandler struct {
	Timeout       time.Duration
	Username      *string
	Password      *string
	LogAuth       bool
	LogHeaders    bool
	Socks5Forward *Socks5Forward
}

func NewProxyHandler

func NewProxyHandler(timeoutSeconds int) *ProxyHandler

func (*ProxyHandler) ServeHTTP

func (p *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Socks5Forward added in v1.3.0

type Socks5Forward struct {
	Address  string
	Username *string
	Password *string
}

Jump to

Keyboard shortcuts

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