Documentation
¶
Index ¶
- Constants
- func GetName(sub string) string
- func GetRegistrationInfo(name string, store ttlstore.TtlStore, prefix string) (created, updated, expires uint32)
- func IsValidName(s string) bool
- func UpdateRegistration(hash, name string, store ttlstore.TtlStore, prefix string) error
- type RecordGenerator
- type RegistrationHandler
- type UpdateHandler
Constants ¶
View Source
const ( PendingTtl = 3600 RegistrationTtl = 120 * 86400 AddressTtl = 90 * 86400 ChallengeTtl = 120 )
Variables ¶
This section is empty.
Functions ¶
func GetRegistrationInfo ¶
func IsValidName ¶
Types ¶
type RecordGenerator ¶
type RecordGenerator struct { Addrs dnsutil.IPCollection SelfChallengeTarget string DataStore ttlstore.TtlStore ChallengeStore ttlstore.TtlStore KeyPrefix string }
func (*RecordGenerator) GenerateRecords ¶
type RegistrationHandler ¶
type RegistrationHandler struct { DataStore ttlstore.TtlStore ChallengeStore ttlstore.TtlStore KeyPrefix string *httputil.TurnstileSite }
func (*RegistrationHandler) ServeHTTP ¶
func (h *RegistrationHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type UpdateHandler ¶
type UpdateHandler struct { DataStore ttlstore.TtlStore ChallengeStore ttlstore.TtlStore KeyPrefix string }
func (*UpdateHandler) ServeHTTP ¶
func (h *UpdateHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.