request

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 3 Imported by: 4

Documentation

Index

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

func (p *Probe) AddressV4() string

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

func (p *Probe) AddressV6() string

The last IPv6 address that was known to be held by this probe, or null if there is no known address..

func (*Probe) AsnV4

func (p *Probe) AsnV4() int

The IPv4 ASN if any.

func (*Probe) AsnV6

func (p *Probe) AsnV6() int

The IPv6 ASN if any.

func (*Probe) CountryCode

func (p *Probe) CountryCode() string

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

func (p *Probe) Description() string

User defined description of the probe.

func (*Probe) FirstConnected

func (p *Probe) FirstConnected() int

When the probe connected for the first time (UTC Time and date in ISO-8601/ECMA 262 format).

func (*Probe) Geometry

func (p *Probe) Geometry() *probe.Number

A GeoJSON point object containing the user-supplied location of this probe. The longitude and latitude are contained within the `coordinates` array.

func (*Probe) Id

func (p *Probe) Id() int

The id of the probe.

func (*Probe) IsAnchor

func (p *Probe) IsAnchor() bool

Whether or not this probe is a RIPE Atlas Anchor.

func (*Probe) IsPublic

func (p *Probe) IsPublic() bool

If a probe is not public then certain details, including exact IP addresses, are not returned..

func (*Probe) LastConnected

func (p *Probe) LastConnected() int

When the probe connected for the last time (UTC Time and date in ISO-8601/ECMA 262 format).

func (*Probe) PrefixV4

func (p *Probe) PrefixV4() string

The IPv4 prefix if any.

func (*Probe) PrefixV6

func (p *Probe) PrefixV6() string

The IPv6 prefix if any.

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

func (p *Probe) StatusSince() int

A datetime field that can hold a datetime both as a timestamp and as a JSON datetime.

func (*Probe) Tags

func (p *Probe) Tags() []*probe.ProbeTags

.

func (*Probe) TotalUptime

func (p *Probe) TotalUptime() int

Accumulated uptime for this probe in seconds.

func (*Probe) Type

func (p *Probe) Type() string

The type of the object.

func (*Probe) UnmarshalJSON

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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