dnsapi

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSAPI

type DNSAPI struct {
	// contains filtered or unexported fields
}

func New

func New(base string) *DNSAPI

func (*DNSAPI) APIGet

func (e *DNSAPI) APIGet(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func (*DNSAPI) AddRoutes

func (e *DNSAPI) AddRoutes(r *httprouter.Router)

type DNSRequest

type DNSRequest struct {
	Type string `json:"type"`
	Name string `json:"name"`
}

type DNSResponse

type DNSResponse struct {
	Results string `json:"result"`
}

DNSResponse is returned from a GET to this API endpoing

Jump to

Keyboard shortcuts

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