Help us shape the future of Go! Take the 2026 Go Developer Survey

dialer

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 4

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 added in v0.3.0

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