proxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnPool

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

func NewConnPool

func NewConnPool(target *url.URL, logger *logger.Logger) *ConnPool

func (*ConnPool) Get

func (p *ConnPool) Get() (net.Conn, error)

func (*ConnPool) Put

func (p *ConnPool) Put(conn net.Conn)

type ReverseProxy

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

func NewReverseProxy

func NewReverseProxy(logger *logger.Logger, service *Service, targetURL *url.URL) *ReverseProxy

func (*ReverseProxy) ServeHTTP

func (p *ReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Service

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

Service remains the same

func NewService

func NewService(log *logger.Logger) *Service

type UpgradeHandler

type UpgradeHandler func(http.ResponseWriter, *http.Request, net.Conn, *http.Response)

Jump to

Keyboard shortcuts

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