transportcommon

package
v5.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialWithSecuritySettings

func DialWithSecuritySettings(ctx context.Context, dest net.Destination, streamSettings *internet.MemoryStreamConfig) (internet.Connection, error)

func ListenWithSecuritySettings

func ListenWithSecuritySettings(ctx context.Context, address net.Address, port net.Port, streamSettings *internet.MemoryStreamConfig) (
	net.Listener, error,
)

func NewALPNAwareHTTPRoundTripper

func NewALPNAwareHTTPRoundTripper(ctx context.Context, dialer DialerFunc,
	backdropTransport http.RoundTripper,
) http.RoundTripper

func NewALPNAwareHTTPRoundTripperWithH2Pool added in v5.17.0

func NewALPNAwareHTTPRoundTripperWithH2Pool(ctx context.Context, dialer DialerFunc,
	backdropTransport http.RoundTripper,
	h2PoolSize int,
) http.RoundTripper

NewALPNAwareHTTPRoundTripperWithH2Pool creates an instance of RoundTripper that dial to remote HTTPS endpoint with an alternative version of TLS implementation.

func NewUnclaimedConnection

func NewUnclaimedConnection(conn net.Conn, expireTime time.Duration) *unclaimedConnection

Types

type DialerFunc

type DialerFunc func(ctx context.Context, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

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