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 ¶ added in v1.1.0
HostPort adds the remote address as encoded by dnsutil.ParseHostPortOrFile to the message.
func (*Builder) ToClientQuery ¶ added in v1.1.0
ToClientQuery transforms Data into a client query message.
func (*Builder) ToClientResponse ¶ added in v1.1.0
ToClientResponse transforms Data into a client response message.
func (*Builder) ToOutsideQuery ¶ added in v1.1.0
ToOutsideQuery transforms the data into a forwarder or resolver query message.
func (*Builder) ToOutsideResponse ¶ added in v1.1.0
ToOutsideResponse transforms the data into a forwarder or resolver response message.
Click to show internal directories.
Click to hide internal directories.