transport

package
v0.0.0-...-c6b0c59 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasScheme

func HasScheme(scheme string) bool

Types

type Transporter

type Transporter struct {
	Dial        func(network, addr string) (net.Conn, error)
	DialContext func(ctx context.Context, network, addr string) (net.Conn, error)
}

func Get

func Get(proxyURL *url.URL) (*Transporter, error)

func (*Transporter) Connect

func (t *Transporter) Connect(ctx context.Context, network, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

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