proxy

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var XForwardedFor = []byte("X-Forwarded-For")

Functions

This section is empty.

Types

type IProxyClient

type IProxyClient interface {
	ReverseProxyHandler(ctx *fasthttp.RequestCtx) error
	Stat() types.ProxyStat
	PendingRequests() int
}

func NewProxyClient

func NewProxyClient(backend config.Backend, customHeaders map[string]string) IProxyClient

type ProxyClient

type ProxyClient struct {
	Addr string
	// contains filtered or unexported fields
}

func (*ProxyClient) PendingRequests added in v0.2.0

func (h *ProxyClient) PendingRequests() int

func (*ProxyClient) ReverseProxyHandler

func (h *ProxyClient) ReverseProxyHandler(ctx *fasthttp.RequestCtx) error

func (*ProxyClient) Stat

func (h *ProxyClient) Stat() types.ProxyStat

type ProxyFunc

type ProxyFunc func(config.Backend, map[string]string) IProxyClient

Jump to

Keyboard shortcuts

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