dialer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTLS

func AddTLS(conn network.Conn, tlsConfig *tls.Config) (network.Conn, error)

AddTLS is used to add tls to a persistent connection, i.e. negotiate a TLS session. If conn is already a TLS tunnel, this function establishes a nested TLS session inside the encrypted channel.

func DefaultDialer

func DefaultDialer() network.Dialer

func DialConnection

func DialConnection(network, address string, timeout time.Duration, tlsConfig *tls.Config) (conn network.Conn, err error)

func DialTimeout

func DialTimeout(network, address string, timeout time.Duration, tlsConfig *tls.Config) (conn net.Conn, err error)

func SetDialer

func SetDialer(dialer network.Dialer)

SetDialer is used to set the global default dialer. Deprecated: use WithDialer instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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