Documentation ¶
Index ¶
- type MeasurementStatus
- type Probe
- type ProbeSource
- type Result
- func (r *Result) Af() int
- func (r *Result) Avg() float64
- func (r *Result) Bundle() int
- func (r *Result) Cert() []string
- func (r *Result) DnsError() *dns.Error
- func (r *Result) DnsResult() *dns.Result
- func (r *Result) DnsResultsets() []*dns.Resultset
- func (r *Result) DstAddr() string
- func (r *Result) DstName() string
- func (r *Result) DstPort() string
- func (r *Result) Dup() int
- func (r *Result) Endtime() int
- func (r *Result) From() string
- func (r *Result) Fw() int
- func (r *Result) GroupId() int
- func (r *Result) HttpResults() []*http.Result
- func (r *Result) Li() string
- func (r *Result) Lts() int
- func (r *Result) Max() float64
- func (r *Result) Method() string
- func (r *Result) Min() float64
- func (r *Result) Mode() string
- func (r *Result) MsmId() int
- func (r *Result) MsmName() string
- func (r *Result) Name() string
- func (r *Result) NtpResults() []*ntp.Result
- func (r *Result) ParisId() int
- func (r *Result) PingResults() []*ping.Result
- func (r *Result) Poll() float64
- func (r *Result) PrbId() int
- func (r *Result) Precision() float64
- func (r *Result) Proto() string
- func (r *Result) Qbuf() string
- func (r *Result) Rcvd() int
- func (r *Result) RefId() string
- func (r *Result) RefTs() float64
- func (r *Result) Retry() int
- func (r *Result) RootDelay() float64
- func (r *Result) RootDispersion() float64
- func (r *Result) Rt() float64
- func (r *Result) Sent() int
- func (r *Result) Size() int
- func (r *Result) SrcAddr() string
- func (r *Result) SslcertAlert() *sslcert.Alert
- func (r *Result) Stratum() int
- func (r *Result) Timestamp() int
- func (r *Result) TracerouteResults() []*traceroute.Result
- func (r *Result) Ttc() float64
- func (r *Result) Ttl() int
- func (r *Result) Type() string
- func (r *Result) UnmarshalJSON(b []byte) error
- func (r *Result) UnpackQbuf() (*mdns.Msg, error)
- func (r *Result) Uri() string
- func (r *Result) Ver() string
- func (r *Result) Version() int
- func (r *Result) WpaSupplicant() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MeasurementStatus ¶
type MeasurementStatus struct { ParseError error // contains filtered or unexported fields }
func (*MeasurementStatus) Name ¶
func (m *MeasurementStatus) Name() string
Human-readable description of this status.
func (*MeasurementStatus) UnmarshalJSON ¶
func (m *MeasurementStatus) UnmarshalJSON(b []byte) error
type Probe ¶
type Probe struct { ParseError error // contains filtered or unexported fields }
func (*Probe) UnmarshalJSON ¶
type ProbeSource ¶
type ProbeSource struct { ParseError error // contains filtered or unexported fields }
func (*ProbeSource) Requested ¶
func (p *ProbeSource) Requested() int
Number of probes that have to be added or removed.
func (*ProbeSource) TagsExclude ¶
func (p *ProbeSource) TagsExclude() string
Comma-separated list of probe tags. Probes with any of these tags attached will be excluded from this participation request.
func (*ProbeSource) TagsInclude ¶
func (p *ProbeSource) TagsInclude() string
Comma-separated list of probe tags. Only probes with all these tags attached will be selected from this participation request.
func (*ProbeSource) Type ¶
func (p *ProbeSource) Type() string
Probe selector. Options are: `area` allows a compass quarter of the world, `asn` selects an Autonomous System, `country` selects a country, `msm` selects the probes used in another measurement, `prefix` selects probes based on prefix, `probes` selects probes directly.
func (*ProbeSource) UnmarshalJSON ¶
func (p *ProbeSource) UnmarshalJSON(b []byte) error
func (*ProbeSource) Value ¶
func (p *ProbeSource) Value() string
Value for given selector type. `area`: ['WW','West','North-Central','South-Central','North-East','South-East']. `asn`: ASN (integer). `country`: two-letter country code according to ISO 3166-1 alpha-2, e.g. GR. `msm`: measurement id (integer). `prefix`: prefix in CIDR notation, e.g. 193.0.0/16. `probes`: comma-separated list of probe IDs.
type Result ¶
type Result struct { ParseError error // contains filtered or unexported fields }
A measurement result object, data availability depends on the type of measurement and some attributes are shared between measurements.
func (*Result) DnsError ¶
DNS error message, nil if the type of measurement is not "dns" (optional).
func (*Result) DnsResult ¶
DNS response from the DNS server, nil if the type of measurement is not "dns" (optional).
func (*Result) DnsResultsets ¶
An array of objects containing the DNS results when querying multiple local resolvers, empty if the type of measurement is not "dns" (optional).
func (*Result) HttpResults ¶
HTTP results, nil if the type of measurement is not "http" (optional).
func (*Result) 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.
func (*Result) NtpResults ¶
NTP results, nil if the type of measurement is not "ntp" (optional).
func (*Result) PingResults ¶
Ping results, nil if the type of measurement is not "ping" (optional).
func (*Result) RootDispersion ¶
Total dispersion to stratum 0 time source in seconds.
func (*Result) Rt ¶
Response time in milli seconds from starting to connect to receving the certificates (optional).
func (*Result) SslcertAlert ¶
Error sent by server (see RFC 5246, Section 7.2) (from firmware 4720), nil if the type of measurement is not "sslcert" (optional).
func (*Result) TracerouteResults ¶
func (r *Result) TracerouteResults() []*traceroute.Result
Traceroute results, nil if the type of measurement is not "traceroute" (optional).
func (*Result) Ttc ¶
Time in milli seconds that it took to connect (over TCP) to the target (optional).
func (*Result) UnmarshalJSON ¶
func (*Result) UnpackQbuf ¶
Decode the Qbuf(), returns a *Msg from the github.com/miekg/dns package or nil on error or if Qbuf() is empty.
func (*Result) WpaSupplicant ¶
Wifi wpa_supplicant (undocumented).