Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseInterceptor ¶
type ResponseInterceptor struct { dns.ResponseWriter Msg *dns.Msg }
func NewResponseInterceptor ¶
func NewResponseInterceptor(w dns.ResponseWriter) *ResponseInterceptor
NewResponseReverter returns a pointer to a new ResponseReverter.
func (*ResponseInterceptor) Hijack ¶
func (r *ResponseInterceptor) Hijack()
Hijack implements dns.Hijacker. It simply wraps the underlying ResponseWriter's Hijack method if there is one, or returns an error.
Click to show internal directories.
Click to hide internal directories.