Documentation
¶
Overview ¶
Package msg helps to build a dnstap Message.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { Type tap.Message_Type Packed []byte SocketProto tap.SocketProtocol SocketFam tap.SocketFamily Address []byte Port uint32 TimeSec uint64 }
Data helps to build a dnstap Message. It can be transformed into the actual Message using this package.
func (*Data) ToClientQuery ¶
Transform the data into a client query message.
func (*Data) ToClientResponse ¶
Transform the data into a client response message.
Click to show internal directories.
Click to hide internal directories.