dialer

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dialer provides utility functions related to dialers.

Index

Constants

This section is empty.

Variables

View Source
var Default = new(net.Dialer)

Default provides a default dialer implementation ready to be used.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	// DialContext opens a connection to addr, which should
	// be a canonical address with host and port, and returns
	// a net.Conn, if no error occours.
	DialContext(ctx context.Context, network, addr string) (net.Conn, error)
}

Dialer is the interface that wraps the DialContext function.

Jump to

Keyboard shortcuts

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