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(opts HandlerOpts) *Handler
type HandlerOpts ¶
type HandlerOpts struct { // DNSHandler is required. DNSHandler dns_handler.Handler // SrcIPHeader specifies the header that contain client source address. // e.g. "X-Forwarded-For". SrcIPHeader string // Logger specifies the logger which Handler writes its log to. // Default is a nop logger. Logger *zap.Logger }
Click to show internal directories.
Click to hide internal directories.