proxy

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BufferSize   = 1024
	TLSHeaderLen = 5
)

Variables

This section is empty.

Functions

func ReadBytes

func ReadBytes(ctx context.Context, conn *net.TCPConn, dest []byte) ([]byte, error)

func Serve

func Serve(ctx context.Context, from *net.TCPConn, to *net.TCPConn, proto string, fd string, td string, timeout int)

Types

type Handler

type Handler interface {
	Serve(ctx context.Context, lConn *net.TCPConn, pkt *packet.HttpRequest, ip string)
}

type Proxy

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

func New

func New(config *util.Config) *Proxy

func (*Proxy) Start

func (pxy *Proxy) Start(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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