dialer

package
v0.0.0-...-8488f5b Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = net.Dialer{
	Timeout:   time.Second,
	KeepAlive: 30 * time.Second,
}
View Source
var Retry = RetryDialer{
	Attempts: attempt.Strategy{
		Total: 30 * time.Second,
		Delay: 500 * time.Millisecond,
	},
}

Functions

This section is empty.

Types

type RetryDialer

type RetryDialer struct {
	Attempts attempt.Strategy
}

func (RetryDialer) Dial

func (r RetryDialer) Dial(network, addr string) (net.Conn, error)

func (RetryDialer) DialTimeout

func (r RetryDialer) DialTimeout(network, addr string, timeout time.Duration) (net.Conn, error)

Jump to

Keyboard shortcuts

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