net

package
v0.0.0-...-4e0ae02 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2016 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupHost

func LookupHost(host string) (addrs []string, err error)

LookupHost looks up the given host using etcd or the local resolver. It returns an array of that host's addresses See LookupHost in packages chain/net/etcdname and net for more.

Types

type Dialer

type Dialer net.Dialer

Dialer satisfies the interface pq.Dialer, using chain/net/etcdname for hostname lookups in addition to the local resolver.

func (*Dialer) Dial

func (d *Dialer) Dial(network, addr string) (net.Conn, error)

Dial connects to the address on the named network. Hostname lookup for addr uses package etcdname in addition to the local resolver. See func Dial for a description of the network and addr parameters.

func (*Dialer) DialTimeout

func (d *Dialer) DialTimeout(network, addr string, timeout time.Duration) (net.Conn, error)

DialTimeout acts like Dial but takes a timeout. The timeout includes name resolution, if required.

Directories

Path Synopsis
http
httpjson
Package httpjson creates HTTP handlers to map request and response formats onto Go function signatures.
Package httpjson creates HTTP handlers to map request and response formats onto Go function signatures.
limit
Package limit provides a rate limiting HTTP handler.
Package limit provides a rate limiting HTTP handler.
reqid
Package reqid creates request IDs and stores them in Contexts.
Package reqid creates request IDs and stores them in Contexts.
static
Package static provides a handler for serving static assets from an in-memory map.
Package static provides a handler for serving static assets from an in-memory map.

Jump to

Keyboard shortcuts

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