http

package
v3.7.8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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 added in v3.2.12

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 added in v3.2.12

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

type Response

type Response struct {
	Nodes []*resolver.Record `json:"nodes,omitempty"`
}

Response contains resolver.Record

Jump to

Keyboard shortcuts

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