proxy

package module
v0.0.0-...-579f5a8 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: CC0-1.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPConfig

type TCPConfig struct {
	DestinationIsTLS     bool
	DestinationTLSConfig *tls.Config
}

type TCPProxy

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

func NewTCP

func NewTCP(dstAddr string, config *TCPConfig) *TCPProxy

func (*TCPProxy) Close

func (p *TCPProxy) Close() error

func (*TCPProxy) ListenRandomPort

func (p *TCPProxy) ListenRandomPort(
	ctx context.Context,
) (*net.TCPAddr, error)

Jump to

Keyboard shortcuts

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