Documentation
¶
Index ¶
- type Probe
- func (p *Probe) AddressV4() string
- func (p *Probe) AddressV6() string
- func (p *Probe) AsnV4() int
- func (p *Probe) AsnV6() int
- func (p *Probe) CountryCode() string
- func (p *Probe) Description() string
- func (p *Probe) FirstConnected() int
- func (p *Probe) Geometry() *probe.Number
- func (p *Probe) Id() int
- func (p *Probe) IsAnchor() bool
- func (p *Probe) IsPublic() bool
- func (p *Probe) LastConnected() int
- func (p *Probe) PrefixV4() string
- func (p *Probe) PrefixV6() string
- func (p *Probe) Status() *probe.ProbeStatus
- func (p *Probe) StatusSince() int
- func (p *Probe) Tags() []*probe.ProbeTags
- func (p *Probe) TotalUptime() int
- func (p *Probe) Type() string
- func (p *Probe) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct { ParseError error // contains filtered or unexported fields }
func (*Probe) AddressV4 ¶
The last IPv4 address that was known to be held by this probe, or null if there is no known address. Note: a probe that connects over IPv6 may fail to report its IPv4 address, meaning that this field can sometimes be null even though the probe may have working IPv4.
func (*Probe) AddressV6 ¶
The last IPv6 address that was known to be held by this probe, or null if there is no known address..
func (*Probe) CountryCode ¶
An ISO-3166-1 alpha-2 code indicating the country that this probe is located in, as derived from the user supplied longitude and latitude.
func (*Probe) Description ¶
User defined description of the probe.
func (*Probe) FirstConnected ¶
When the probe connected for the first time (UTC Time and date in ISO-8601/ECMA 262 format).
func (*Probe) Geometry ¶
A GeoJSON point object containing the user-supplied location of this probe. The longitude and latitude are contained within the `coordinates` array.
func (*Probe) IsPublic ¶
If a probe is not public then certain details, including exact IP addresses, are not returned..
func (*Probe) LastConnected ¶
When the probe connected for the last time (UTC Time and date in ISO-8601/ECMA 262 format).
func (*Probe) Status ¶
func (p *Probe) Status() *probe.ProbeStatus
A JSON object containing id: The connection status ID for this probe (integer [0-3]), name: The connection status (string [Never Connected, Connected, Disconnected, Abandoned]), since: The datetime of the last change in connection status.
func (*Probe) StatusSince ¶
A datetime field that can hold a datetime both as a timestamp and as a JSON datetime.
func (*Probe) TotalUptime ¶
Accumulated uptime for this probe in seconds.