netx

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package netx contains network extensions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryingDialer

type RetryingDialer struct {
	// Dialer is the embedded dialer.
	net.Dialer
}

RetryingDialer is a dialer where we retry dialing for a fixed number of attempts to increase reliability.

func (*RetryingDialer) DialContext

func (rd *RetryingDialer) DialContext(
	ctx context.Context, network, address string,
) (conn net.Conn, err error)

DialContext will dial for a specific network and address using the specified context.

Jump to

Keyboard shortcuts

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