handler

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DynDnsRequest

func DynDnsRequest(w http.ResponseWriter, r *http.Request) error

Types

type DynDnsError

type DynDnsError struct {
	Code DynDnsErrorCode
}

func (*DynDnsError) Error

func (dynDnsError *DynDnsError) Error() string

type DynDnsErrorCode

type DynDnsErrorCode string
const (
	BadAuth  DynDnsErrorCode = "badauth"
	NotFQDN  DynDnsErrorCode = "notfqdn"
	NoHost   DynDnsErrorCode = "nohost"
	NumHost  DynDnsErrorCode = "numhost"
	Abuse    DynDnsErrorCode = "abuse"
	BadAgent DynDnsErrorCode = "badagent"
	DNSErr   DynDnsErrorCode = "dnserr"
	Error911 DynDnsErrorCode = "911"
)

type DynDnsHandler

type DynDnsHandler struct {
	DynDnsRequest func(w http.ResponseWriter, r *http.Request) error
}

func (DynDnsHandler) ServeHTTP

func (handler DynDnsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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