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 ¶
IsConnectionFailed checks whether the error is a connection failure
func IsTLSHandshakeFailed ¶
IsTLSHandshakeFailed checks whether the error is a TLS handshake failure
func IsUTLSPSKLimitationError ¶
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.
Click to show internal directories.
Click to hide internal directories.