dialer

package
v0.0.0-...-dd9b67b Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2014 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(c DiscoverdClient) *http.Client

NewHTTPClient returns a HTTP client configured to use discoverd to lookup hostnames.

Types

type DialFunc

type DialFunc func(network, addr string) (net.Conn, error)

type Dialer

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

func New

New returns a Dialer that uses discoverd to lookup hostnames. If f is provided, it used to Dial after looking up an address.

type DiscoverdClient

type DiscoverdClient interface {
	NewServiceSet(name string) (discoverd.ServiceSet, error)
}

Jump to

Keyboard shortcuts

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