httpproxy

package
v0.0.0-...-e27f806 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Id           string
	Listen       string
	Acl          string
	Upstreamport string
	Upstreams    []string
	Deadline     int64
	Idle         int64
	LogRequest   bool
}

type HTTPProxy

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

func New

func New(config Config, access access.Checker, logger log15.Logger) (httpProxy *HTTPProxy)

func (*HTTPProxy) HandleConn

func (httpProxy *HTTPProxy) HandleConn(downstream *net.TCPConn)

func (*HTTPProxy) Stop

func (httpProxy *HTTPProxy) Stop()

Jump to

Keyboard shortcuts

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