httpproxy

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProxyPool map[string]*ProxyServer = make(map[string]*ProxyServer, 0)

Functions

func Start

func Start() error

* 启动代理服务器,对外使用fasthttp的http server,支持https模式

Types

type ProxyServer added in v0.0.2

type ProxyServer struct {
	ReverseProxy   *proxy.ReverseProxy
	WSReverseProxy *proxy.WSReverseProxy
	// contains filtered or unexported fields
}

* 使用fasthttp实现的http反向代理,支持http,ws,https,wss的代理映射

func (*ProxyServer) ProxyHandler added in v0.0.2

func (proxyServer *ProxyServer) ProxyHandler(ctx *fasthttp.RequestCtx)

Jump to

Keyboard shortcuts

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