Documentation ¶
Index ¶
Constants ¶
View Source
const ( LookupTimeout = 5 * time.Second LookupResponseMaxTtl = 86400 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupHandler ¶
type LookupHandler struct { // PathRegex must fully validate the path and capture the name and type PathRegex *regexp.Regexp Upstream string }
func (*LookupHandler) ServeHTTP ¶
func (h *LookupHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.