Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetch ¶
type Fetch struct { // FQDN is the fully qualified domain name of the TXT record. FQDN string // Server is the DNS server that was queried. Server string // Found indicates whether the TXT record was found. Found bool // Timeout indicates whether the query timed out. Timeout bool // At holds the time when the fetch request was made. At time.Time // Duration is the time waited for the token/response. Duration time.Duration // PriorExpiration is the expiration time of the previous TXT record. PriorExpiration time.Time // Expiration is the expiration time of the TXT record. Expiration time.Time // TemporaryErr indicates whether a temporary error occurred during the query. TemporaryErr bool // The endpoint that was found in the TXT record. Endpoint string // Payload is the payload of the TXT record. Payload []byte // Err indicates whether an error occurred during the query. Err error }
Fetch is an event that is emitted when a TXT record fetch is attempted.
type FetchListener ¶
type FetchListener interface {
OnFetchEvent(Fetch)
}
FetchListener is a sink for registration events.
type FetchListenerFunc ¶
type FetchListenerFunc func(Fetch)
FetchListenerFunc is a function type that implements FetchListener.
func (FetchListenerFunc) OnFetchEvent ¶
func (f FetchListenerFunc) OnFetchEvent(fe Fetch)
Click to show internal directories.
Click to hide internal directories.