proxy

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDialer

func NewDialer(socks string) proxy.Dialer

Types

type HttpsProxy

type HttpsProxy struct {
	// contains filtered or unexported fields
}

func (*HttpsProxy) ServeHTTP

func (p *HttpsProxy) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...ProxyOption) *Proxy

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Proxy) Start

func (p *Proxy) Start()

type ProxyOption

type ProxyOption func(p *Proxy)

func WithPort

func WithPort(port string) ProxyOption

func WithSocks

func WithSocks(socks string) ProxyOption

func WithTrace

func WithTrace(enabled bool) ProxyOption

Jump to

Keyboard shortcuts

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