network

package module
v1.0.28 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "network"

ModuleName is the Network module name.

Variables

View Source
var (
	// ErrTLSHandshakeFailed indicates TLS handshake failure
	ErrTLSHandshakeFailed = fmt.Errorf("%w: tls handshake failed", errs.ErrInvalidFingerprint)

	// ErrConnectionFailed indicates connection failure
	ErrConnectionFailed = fmt.Errorf("%w: connection failed", errs.ErrInvalidFingerprint)

	// ErrInvalidNetworkConfig indicates invalid network configuration
	ErrInvalidNetworkConfig = fmt.Errorf("%w: invalid network config", errs.ErrInvalidFingerprint)
)

Functions

func IsConnectionFailed

func IsConnectionFailed(err error) bool

IsConnectionFailed checks whether the error is a connection failure

func IsTLSHandshakeFailed

func IsTLSHandshakeFailed(err error) bool

IsTLSHandshakeFailed checks whether the error is a TLS handshake failure

func IsUTLSPSKLimitationError

func IsUTLSPSKLimitationError(err error) bool

IsUTLSPSKLimitationError checks whether the error is caused by uTLS PSK limitation In some cases, the uTLS library cannot export PSK and requires special handling

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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