reverseproxy

package
v0.0.0-...-426aaea Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCLoadBalanceReverseProxy

func NewGRPCLoadBalanceReverseProxy(lb load_balance.LoadBalance) grpc.StreamHandler

func NewHTTPLoadBalanceReverseProxy

func NewHTTPLoadBalanceReverseProxy(lb load_balance.LoadBalance, transport *http.Transport) *httputil.ReverseProxy

Types

type TcpReverseProxy

type TcpReverseProxy struct {
	Addr                 string
	KeepAlivePeriod      time.Duration
	DialTimeout          time.Duration
	DialContext          func(ctx context.Context, network, address string) (net.Conn, error)
	OnDialError          func(src net.Conn, dstDialErr error)
	ProxyProtocolVersion int
	// contains filtered or unexported fields
}

func (*TcpReverseProxy) ServeTCP

func (dp *TcpReverseProxy) ServeTCP(ctx context.Context, src net.Conn)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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