Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Addr(remote net.Addr) *Builder
- func (b *Builder) HostPort(addr string) *Builder
- func (b *Builder) Msg(m *dns.Msg) *Builder
- func (b *Builder) Time(ts time.Time) *Builder
- func (b *Builder) ToClientQuery() (*tap.Message, error)
- func (b *Builder) ToClientResponse() (*tap.Message, error)
- func (b *Builder) ToOutsideQuery(t tap.Message_Type) (*tap.Message, error)
- func (b *Builder) ToOutsideResponse(t tap.Message_Type) (*tap.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { Packed []byte SocketProto tap.SocketProtocol SocketFam tap.SocketFamily Address net.IP Port uint32 TimeSec uint64 TimeNsec uint32 // contains filtered or unexported fields }
Builder helps to build a Dnstap message.
func (*Builder) HostPort ¶
HostPort adds the remote address as encoded by dnsutil.ParseHostPortOrFile to the message.
func (*Builder) ToClientQuery ¶
ToClientQuery transforms Data into a client query message.
func (*Builder) ToClientResponse ¶
ToClientResponse transforms Data into a client response message.
func (*Builder) ToOutsideQuery ¶
ToOutsideQuery transforms the data into a forwarder or resolver query message.
func (*Builder) ToOutsideResponse ¶
ToOutsideResponse transforms the data into a forwarder or resolver response message.
Click to show internal directories.
Click to hide internal directories.