measurement

package
v0.0.0-...-f8d51a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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) Id

func (m *MeasurementStatus) Id() int

Numeric ID of this status.

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) Id

func (p *Probe) Id() int

ID of this probe.

func (*Probe) UnmarshalJSON

func (p *Probe) UnmarshalJSON(b []byte) error

func (*Probe) Url

func (p *Probe) Url() string

The URL that contains the details of this probe.

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) Af

func (r *Result) Af() int

IP version: "4" or "6" (optional).

func (*Result) Avg

func (r *Result) Avg() float64

Average round-trip time.

func (*Result) Bundle

func (r *Result) Bundle() int

Wifi bundle (undocumented).

func (*Result) Cert

func (r *Result) Cert() []string

Results of query, not present if "alert" is present (optional).

func (*Result) DnsError

func (r *Result) DnsError() *dns.Error

DNS error message, nil if the type of measurement is not "dns" (optional).

func (*Result) DnsResult

func (r *Result) DnsResult() *dns.Result

DNS response from the DNS server, nil if the type of measurement is not "dns" (optional).

func (*Result) DnsResultsets

func (r *Result) DnsResultsets() []*dns.Resultset

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) DstAddr

func (r *Result) DstAddr() string

IP address of the destination (optional).

func (*Result) DstName

func (r *Result) DstName() string

Hostname of the destination (optional).

func (*Result) DstPort

func (r *Result) DstPort() string

Port name.

func (*Result) Dup

func (r *Result) Dup() int

Number of duplicate packets.

func (*Result) Endtime

func (r *Result) Endtime() int

Unix timestamp for end of measurement.

func (*Result) From

func (r *Result) From() string

IP address of the source (optional).

func (*Result) Fw

func (r *Result) Fw() int

The firmware version used by the probe that generated this result.

func (*Result) GroupId

func (r *Result) GroupId() int

Wifi group_id (undocumented).

func (*Result) HttpResults

func (r *Result) HttpResults() []*http.Result

HTTP results, nil if the type of measurement is not "http" (optional).

func (*Result) Li

func (r *Result) Li() string

Leap indicator, values "no", "61", "59", or "unknown".

func (*Result) Lts

func (r *Result) Lts() int

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) Max

func (r *Result) Max() float64

Maximum round-trip time.

func (*Result) Method

func (r *Result) Method() string

"SSL".

func (*Result) Min

func (r *Result) Min() float64

Minimum round-trip time.

func (*Result) Mode

func (r *Result) Mode() string

"server".

func (*Result) MsmId

func (r *Result) MsmId() int

Measurement identifier.

func (*Result) MsmName

func (r *Result) MsmName() string

Wifi msm_name (undocumented).

func (*Result) Name

func (r *Result) Name() string

Name of the destination (deprecated).

func (*Result) NtpResults

func (r *Result) NtpResults() []*ntp.Result

NTP results, nil if the type of measurement is not "ntp" (optional).

func (*Result) ParisId

func (r *Result) ParisId() int

Variation for the Paris mode of traceroute.

func (*Result) PingResults

func (r *Result) PingResults() []*ping.Result

Ping results, nil if the type of measurement is not "ping" (optional).

func (*Result) Poll

func (r *Result) Poll() float64

Poll interval in seconds.

func (*Result) PrbId

func (r *Result) PrbId() int

Source probe ID.

func (*Result) Precision

func (r *Result) Precision() float64

Precision of the server's clock in seconds.

func (*Result) Proto

func (r *Result) Proto() string

Protocol.

func (*Result) Qbuf

func (r *Result) Qbuf() string

Query payload buffer which was sent to the server, UU encoded (optional).

func (*Result) Rcvd

func (r *Result) Rcvd() int

Number of packets received.

func (*Result) RefId

func (r *Result) RefId() string

Server's reference clock.

func (*Result) RefTs

func (r *Result) RefTs() float64

Server's reference timestamp in NTP seconds.

func (*Result) Retry

func (r *Result) Retry() int

Retry count (optional).

func (*Result) RootDelay

func (r *Result) RootDelay() float64

Round-trip delay from server to stratum 0 time source in seconds.

func (*Result) RootDispersion

func (r *Result) RootDispersion() float64

Total dispersion to stratum 0 time source in seconds.

func (*Result) Rt

func (r *Result) Rt() float64

Response time in milli seconds from starting to connect to receving the certificates (optional).

func (*Result) Sent

func (r *Result) Sent() int

Number of packets sent.

func (*Result) Size

func (r *Result) Size() int

Packet size.

func (*Result) SrcAddr

func (r *Result) SrcAddr() string

Source address used by probe (missing due to a bug).

func (*Result) SslcertAlert

func (r *Result) SslcertAlert() *sslcert.Alert

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) Stratum

func (r *Result) Stratum() int

Distance in hops from server to primary time source.

func (*Result) Timestamp

func (r *Result) Timestamp() int

Start time, in Unix timestamp.

func (*Result) TracerouteResults

func (r *Result) TracerouteResults() []*traceroute.Result

Traceroute results, nil if the type of measurement is not "traceroute" (optional).

func (*Result) Ttc

func (r *Result) Ttc() float64

Time in milli seconds that it took to connect (over TCP) to the target (optional).

func (*Result) Ttl

func (r *Result) Ttl() int

Time-to-live field in the first reply (missing due to a bug).

func (*Result) Type

func (r *Result) Type() string

The type of measurement within this result.

func (*Result) UnmarshalJSON

func (r *Result) UnmarshalJSON(b []byte) error

func (*Result) UnpackQbuf

func (r *Result) UnpackQbuf() (*mdns.Msg, error)

Decode the Qbuf(), returns a *Msg from the github.com/miekg/dns package or nil on error or if Qbuf() is empty.

func (*Result) Uri

func (r *Result) Uri() string

Request uri.

func (*Result) Ver

func (r *Result) Ver() string

(SSL) protocol version.

func (*Result) Version

func (r *Result) Version() int

NTP protocol version.

func (*Result) WpaSupplicant

func (r *Result) WpaSupplicant() map[string]string

Wifi wpa_supplicant (undocumented).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL