Categorygithub.com/lamg/proxy
modulepackage
3.0.1+incompatible
Repository: https://github.com/lamg/proxy.git
Documentation: pkg.go.dev

# README

Proxy

GoDoc

HTTP proxy that uses custom procedures for network dialing and parent proxy selection (HTTP or SOCKS5). It can be served using standard library server or fasthttp server

Usage

The command line program at cmd/proxy is a simple example of how to use the library. With Go 1.11 or superior install with:

git clone [email protected]:lamg/proxy.git
cd proxy/cmd/proxy && go install

# Packages

No description provided by the author

# Functions

NewFastProxy creates a github.com/valyala/fasthttp.RequestHandler ready to be used as an HTTP/HTTPS proxy server, in conjunction with a github.com/valyala/fasthttp.Server.
NewProxy creates a net/http.Handler ready to be used as an HTTP/HTTPS proxy server in conjunction with a net/http.Server.

# Type aliases

ContextDialer is the signature of a procedure that creates network connections possibly taking a value created by ContextValueF.
ContextValueF is the signature of a procedure that calculates a value and embeds it in the returned context.
Dialer is the procedure signature of net.Dial.
ParentProxyF is the signature of a procedure that calculates the parent HTTP proxy for processing a request.