dialcontextwrapper

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DialContextWrapper

type DialContextWrapper struct {
	NoContextDialer
}

DialContextWrapper wraps old style no-context Dial to be availabe for use as DialContext, where passed context is just ignored.

func (*DialContextWrapper) DialContext

func (d *DialContextWrapper) DialContext(ctx context.Context, network, addr string) (net.Conn, error)

DialContext calls NoContextDialer.Dial ignoring the context.

type NoContextDialer

type NoContextDialer interface {
	Dial(network, addr string) (net.Conn, error)
}

NoContextDialer provides an old-style Dial func (with no context).

Jump to

Keyboard shortcuts

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