http

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 5 Imported by: 4

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 Resolver

type Resolver struct {
	// If not set, defaults to http
	Proto string

	// Path sets the path to lookup. Defaults to /network
	Path string
}

func (*Resolver) Resolve

func (r *Resolver) Resolve(name string) ([]*resolver.Record, error)

Resolve assumes ID is a domain which can be converted to a http://name/network request

Jump to

Keyboard shortcuts

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