Documentation ¶
Index ¶
- type Answer
- type Error
- type Result
- func (r *Result) Abuf() string
- func (r *Result) Ancount() int
- func (r *Result) Answers() []*Answer
- func (r *Result) Arcount() int
- func (r *Result) Id() int
- func (r *Result) Nscount() int
- func (r *Result) Qdcount() int
- func (r *Result) Rt() float64
- func (r *Result) Size() int
- func (r *Result) SrcAddr() string
- func (r *Result) Subid() int
- func (r *Result) Submax() int
- func (r *Result) UnmarshalJSON(b []byte) error
- func (r *Result) UnpackAbuf() (*mdns.Msg, error)
- type Resultset
- func (r *Resultset) Af() int
- func (r *Resultset) DnsError() *Error
- func (r *Resultset) DstAddr() string
- func (r *Resultset) DstName() string
- func (r *Resultset) Lts() int
- func (r *Resultset) Proto() string
- func (r *Resultset) Qbuf() string
- func (r *Resultset) Result() *Result
- func (r *Resultset) Retry() int
- func (r *Resultset) Timestamp() int
- func (r *Resultset) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct {
// contains filtered or unexported fields
}
First two records from the response decoded by the probe, if they are TXT or SOA; other RR can be decoded from "abuf"
func (*Answer) UnmarshalJSON ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error message.
func (*Error) UnmarshalJSON ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Response from the DNS server.
func (*Result) Answers ¶
First two records from the response decoded by the probe, if they are TXT or SOA; other RR can be decoded from Abuf() using UnpackAbuf().
func (*Result) Subid ¶
Sequence number of this result within a group of results, available if the resolution is done by the probe's local resolver (optional).
func (*Result) UnmarshalJSON ¶
type Resultset ¶
type Resultset struct {
// contains filtered or unexported fields
}
func (*Resultset) Lts ¶
Last time synchronised. How long ago (in seconds) the clock of the probe was found to be in sync with that of a controller. The value -1 is used to indicate that the probe does not know whether it is in sync.