Documentation ¶
Overview ¶
Package taprw takes a query and intercepts the response. It will log both after the response is written.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseWriter ¶
type ResponseWriter struct { Query *dns.Msg dns.ResponseWriter Tapper Send *SendOption // contains filtered or unexported fields }
ResponseWriter captures the client response and logs the query to dnstap. Single request use. SendOption configures Dnstap to selectively send Dnstap messages. Default is send all.
func (ResponseWriter) DnstapError ¶
func (w ResponseWriter) DnstapError() error
DnstapError check if a dnstap error occurred during Write and returns it.
func (*ResponseWriter) SetQueryEpoch ¶
func (w *ResponseWriter) SetQueryEpoch()
SetQueryEpoch sets the query epoch as reported by dnstap.
type SendOption ¶
SendOption stores the flag to indicate whether a certain DNSTap message to be sent out or not.
Click to show internal directories.
Click to hide internal directories.