Documentation ¶
Overview ¶
Package http resolves names to network addresses using a http request
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPResolver ¶
type HTTPResolver struct { // Proto if not set, defaults to http Proto string // Path sets the path to lookup. Defaults to /network Path string // Host url to use for the query Host string }
nolint: golint,revive HTTPResolver is a HTTP network resolver
func (*HTTPResolver) Resolve ¶
func (r *HTTPResolver) Resolve(name string) ([]*resolver.Record, error)
Resolve assumes ID is a domain which can be converted to a http://name/network request
Click to show internal directories.
Click to hide internal directories.