Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(dnsHandler dns_handler.Handler, options ...Option) *Handler
type Option ¶
type Option func(h *Handler)
func WithClientSrcIPHeader ¶
WithClientSrcIPHeader sets the header that Handler can read client's source IP when server is behind a proxy. e.g. "X-Forwarded-For" (nginx).
func WithPath ¶
WithPath sets the server entry point url path. If empty, Handler will not check the request path.
func WithTimeout ¶
WithTimeout sets the query maximum executing time. Default is defaultTimeout.
Click to show internal directories.
Click to hide internal directories.