challenges

package
v0.0.0-...-b4bca67 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ChallengeTtl = 120

Variables

This section is empty.

Functions

func IsValidChallenge

func IsValidChallenge(s string) bool

func IsValidSubdomain

func IsValidSubdomain(sub string) bool

Types

type HTTPHandler

type HTTPHandler struct {
	ChallengeStore ttlstore.TtlStore
	Zone           string
}

func (*HTTPHandler) ServeHTTP

func (h *HTTPHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type RecordGenerator

type RecordGenerator struct {
	Addrs               dnsutil.IPCollection
	SelfChallengeTarget string
	ChallengeStore      ttlstore.TtlStore
}

func (*RecordGenerator) GenerateRecords

func (g *RecordGenerator) GenerateRecords(q *dns.Question, zone string) (rrs []dns.RR, validName bool)

Jump to

Keyboard shortcuts

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