ddns

package module
v0.0.0-...-98f9cb7 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateDDNS

func UpdateDDNS(w http.ResponseWriter, r *http.Request)

UpdateDDNS is an HTTP Cloud Function with a request parameter.

Types

type Request

type Request struct {
	IPAddress string `json:"IPAddress"`
	DNSName   string `json:"DNSName"`
	APIToken  string `json:"APIToken"`
}

Request is the expected struct we want as a request

type Response

type Response struct {
	Status    string `json:"status"`
	Additions int    `json:"additions"`
	Deletions int    `json:"deletions,omitempty"`
}

Response is the response we expect to return

Jump to

Keyboard shortcuts

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