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 Dialer ¶
func New ¶
func New(c DiscoverdClient, f DialFunc) Dialer
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 ¶
Click to show internal directories.
Click to hide internal directories.