dnsapi

package
v0.0.0-...-98f3e61 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: MIT 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 {
}

func New

func New() *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, base string)

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 endpoint

Jump to

Keyboard shortcuts

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