dialer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	//Dial creates a new connection to the service
	Dial() (io.ReadWriter, error)
}

func TCP

func TCP(addr string, port uint16) (Dialer, error)

TCP creates a Dialer to the address and port using a TCP connection

func TLS

func TLS(addr string, port uint16, config *tls.Config) (Dialer, error)

TLS creates a Dialer to the address and port using a TLS (SSL) connection

type DialerFunc

type DialerFunc func() (io.ReadWriter, error)

func (DialerFunc) Dial

func (f DialerFunc) Dial() (io.ReadWriter, error)

Jump to

Keyboard shortcuts

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