Versions in this module Expand all Collapse all v0 v0.7.2 Mar 1, 2024 v0.7.1 Jan 18, 2024 Changes in this version type ResultsFilter + func (filter *ResultsFilter) StreamTimeout(timeout time.Duration) v0.7.0 Nov 14, 2023 Changes in this version + const MeasurementStatusCanceled + const MeasurementStatusDenied + const MeasurementStatusFailed + const MeasurementStatusForcedStop + const MeasurementStatusNoSuitableProbes + const MeasurementStatusOngoing + const MeasurementStatusScheduled + const MeasurementStatusSpecified + const MeasurementStatusStopped + const MeasurementStatusUnusedStatus + const ProbeStatusAbandoned + const ProbeStatusConnected + const ProbeStatusDisconnected + const ProbeStatusNeverConnected + var Areas = []string + var DnsClasses = []string + var DnsProtocols = []string + var DnsTypes = []string + var HttpMethods = []string + var HttpVersions = []string + var MeasurementListSortOrders = []string + var MeasurementOneoffDict = map[bool]string + var MeasurementStatusDict = map[uint]string + var MeasurementTypes = []string + var ProbeListSortOrders = []string + var ProbeStatusDict = map[uint]string + var TraceProtocols = []string + func SetAPIBase(newAPIBaseURL string) + func SetStreamBase(newStreamBaseURL string) + func UserAgent() string + func ValidMeasurementListSortOrder(sort string) bool + func ValidMeasurementType(typ string) bool + func ValidProbeListSortOrder(sort string) bool + type Anchor struct + ASN4 *uint + ASN6 *uint + Address4 *netip.Addr + Address6 *netip.Addr + City string + Company string + CountryCode string + Disabled bool + FQDN string + HardwareVersion uint + ID uint + IPv4Gateway *netip.Addr + IPv4Netmask *netip.Addr + IPv4Only bool + IPv6Gateway *netip.Addr + IPv6Netmask *netip.Addr + LiveSince *uniTime + Location Geolocation + NicHandle string + ProbeID uint + TLSARecord string + Type string + func GetAnchor(verbose bool, id uint) (anchor *Anchor, err error) + func (anchor *Anchor) LongString() string + func (anchor *Anchor) ShortString() string + type AnchorFilter struct + func NewAnchorFilter() AnchorFilter + func (filter *AnchorFilter) FilterASN4(as uint) + func (filter *AnchorFilter) FilterASN6(as uint) + func (filter *AnchorFilter) FilterCountry(cc string) + func (filter *AnchorFilter) FilterID(id uint) + func (filter *AnchorFilter) FilterSearch(text string) + func (filter *AnchorFilter) GetAnchorCount() (count uint, err error) + func (filter *AnchorFilter) GetAnchors(anchors chan AsyncAnchorResult) + func (filter *AnchorFilter) Limit(max uint) + func (filter *AnchorFilter) Verbose(verbose bool) + type AsyncAnchorResult struct + Anchor Anchor + Error error + type AsyncMeasurementResult struct + Error error + Measurement Measurement + type AsyncProbeResult struct + Error error + Probe Probe + type AsyncStatusCheckResult struct + Error error + Status *StatusCheckResult + type BaseOptions struct + Interval uint + ResolveOnProbe bool + SkipDNSCheck bool + Spread uint + Tags []string + type DnsOptions struct + Argument string + Class string + IncludeAbuf bool + IncludeQbuf bool + Nsid bool + PrependProbeID bool + Protocol string + Retries uint + SetCd bool + SetDo bool + SetRd bool + Timeout uint + Type string + UdpPayloadSize uint + UseMacros bool + UseResolver bool + type ErrorDetail struct + Code int + Detail string + Errors []ErrorMessage + Status int + Title string + type ErrorMessage struct + Detail string + Source ErrorSource + type ErrorSource struct + Pointer string + type Geolocation struct + Coordinates []float32 + Type string + type HttpOptions struct + ExtendedTiming bool + HeaderBytes uint + Method string + MoreExtendedTiming bool + Path string + Port uint + Query string + Version string + type Measurement struct + AddressFamily *uint + AllScheduled bool + CreationTime uniTime + CreditsPerResult uint + Description *string + GroupID *uint + ID uint + InWifiGroup bool + Interval *uint + OneOff bool + ParticipantCount *uint + Probes []ParticipantProbe + ProbesRequested *int + ProbesScheduled *uint + Public bool + ResolveOnProbe bool + ResolvedIPs *[]netip.Addr + ResultsPerDay uint + Spread *uint + StartTime uniTime + Status MeasurementStatus + StopTime *uniTime + Tags []string + Target string + TargetASN *uint + TargetIP netip.Addr + TargetPrefix *netip.Prefix + Type string + func GetMeasurement(verbose bool, id uint, key *uuid.UUID) (*Measurement, error) + func (measurement *Measurement) LongString() string + func (measurement *Measurement) ShortString() string + type MeasurementFilter struct + func NewMeasurementFilter() MeasurementFilter + func (filter *MeasurementFilter) ApiKey(key *uuid.UUID) + func (filter *MeasurementFilter) FilterAddressFamily(af uint) + func (filter *MeasurementFilter) FilterDescriptionEndsWith(what string) + func (filter *MeasurementFilter) FilterDescriptionHas(what string) + func (filter *MeasurementFilter) FilterDescriptionIs(what string) + func (filter *MeasurementFilter) FilterDescriptionStartsWith(what string) + func (filter *MeasurementFilter) FilterID(id uint) + func (filter *MeasurementFilter) FilterIDGt(n uint) + func (filter *MeasurementFilter) FilterIDGte(n uint) + func (filter *MeasurementFilter) FilterIDLt(n uint) + func (filter *MeasurementFilter) FilterIDLte(n uint) + func (filter *MeasurementFilter) FilterIDin(list []uint) + func (filter *MeasurementFilter) FilterInterval(n uint) + func (filter *MeasurementFilter) FilterIntervalGt(n uint) + func (filter *MeasurementFilter) FilterIntervalGte(n uint) + func (filter *MeasurementFilter) FilterIntervalLt(n uint) + func (filter *MeasurementFilter) FilterIntervalLte(n uint) + func (filter *MeasurementFilter) FilterMy() + func (filter *MeasurementFilter) FilterOneoff(oneoff bool) + func (filter *MeasurementFilter) FilterProbe(id uint) + func (filter *MeasurementFilter) FilterProtocol(protocol string) + func (filter *MeasurementFilter) FilterStarttimeGt(t time.Time) + func (filter *MeasurementFilter) FilterStarttimeGte(t time.Time) + func (filter *MeasurementFilter) FilterStarttimeLt(t time.Time) + func (filter *MeasurementFilter) FilterStarttimeLte(t time.Time) + func (filter *MeasurementFilter) FilterStatus(n uint) + func (filter *MeasurementFilter) FilterStatusIn(list []uint) + func (filter *MeasurementFilter) FilterStoptimeGt(t time.Time) + func (filter *MeasurementFilter) FilterStoptimeGte(t time.Time) + func (filter *MeasurementFilter) FilterStoptimeLt(t time.Time) + func (filter *MeasurementFilter) FilterStoptimeLte(t time.Time) + func (filter *MeasurementFilter) FilterTags(list []string) + func (filter *MeasurementFilter) FilterTarget(target netip.Prefix) + func (filter *MeasurementFilter) FilterTargetEndsWith(what string) + func (filter *MeasurementFilter) FilterTargetHas(what string) + func (filter *MeasurementFilter) FilterTargetIs(what string) + func (filter *MeasurementFilter) FilterTargetStartsWith(what string) + func (filter *MeasurementFilter) FilterType(typ string) + func (filter *MeasurementFilter) GetMeasurementCount() (count uint, err error) + func (filter *MeasurementFilter) GetMeasurements(measurements chan AsyncMeasurementResult) + func (filter *MeasurementFilter) Limit(limit uint) + func (filter *MeasurementFilter) Sort(by string) + func (filter *MeasurementFilter) Verbose(verbose bool) + type MeasurementList struct + Measurements []uint + type MeasurementSpec struct + func NewMeasurementSpec() (spec *MeasurementSpec) + func (filter *MeasurementSpec) ApiKey(key *uuid.UUID) + func (spec *MeasurementSpec) AddDns(description string, target string, af uint, baseoptions *BaseOptions, ...) error + func (spec *MeasurementSpec) AddHttp(description string, target string, af uint, baseoptions *BaseOptions, ...) error + func (spec *MeasurementSpec) AddNtp(description string, target string, af uint, baseoptions *BaseOptions, ...) error + func (spec *MeasurementSpec) AddPing(description string, target string, af uint, baseoptions *BaseOptions, ...) error + func (spec *MeasurementSpec) AddProbesArea(area string, n int) error + func (spec *MeasurementSpec) AddProbesAreaWithTags(area string, n int, tagsincl *[]string, tagsexcl *[]string) error + func (spec *MeasurementSpec) AddProbesAsn(asn uint, n int) error + func (spec *MeasurementSpec) AddProbesAsnWithTags(asn uint, n int, tagsincl *[]string, tagsexcl *[]string) error + func (spec *MeasurementSpec) AddProbesCountry(cc string, n int) error + func (spec *MeasurementSpec) AddProbesCountryWithTags(cc string, n int, tagsincl *[]string, tagsexcl *[]string) error + func (spec *MeasurementSpec) AddProbesList(list []uint) error + func (spec *MeasurementSpec) AddProbesListWithTags(list []uint, tagsincl *[]string, tagsexcl *[]string) error + func (spec *MeasurementSpec) AddProbesPrefix(prefix netip.Prefix, n int) error + func (spec *MeasurementSpec) AddProbesPrefixWithTags(prefix netip.Prefix, n int, tagsincl *[]string, tagsexcl *[]string) error + func (spec *MeasurementSpec) AddProbesReuse(msm uint, n int) error + func (spec *MeasurementSpec) AddProbesReuseWithTags(msm uint, n int, tagsincl *[]string, tagsexcl *[]string) error + func (spec *MeasurementSpec) AddTls(description string, target string, af uint, baseoptions *BaseOptions, ...) error + func (spec *MeasurementSpec) AddTrace(description string, target string, af uint, baseoptions *BaseOptions, ...) error + func (spec *MeasurementSpec) BillTo(billto string) + func (spec *MeasurementSpec) EndTime(time time.Time) + func (spec *MeasurementSpec) GetApiJson() ([]byte, error) + func (spec *MeasurementSpec) OneOff(oneoff bool) + func (spec *MeasurementSpec) ParticipationRequest(msmID uint, add bool) ([]uint, error) + func (spec *MeasurementSpec) Schedule() (msmlist []uint, err error) + func (spec *MeasurementSpec) StartTime(time time.Time) + func (spec *MeasurementSpec) Stop(msmID uint) error + func (spec *MeasurementSpec) Verbose(verbose bool) + type MeasurementStatus struct + ID uint + Name string + Since *uniTime + type MultiErrorResponse struct + Error ErrorDetail + Errors []ErrorMessage + type NtpOptions struct + Packets uint + Timeout uint + type ParticipantProbe struct + ID uint + type PingOptions struct + IncludeProbeID bool + PacketInterval uint + PacketSize uint + Packets uint + type Probe struct + ASN4 *uint + ASN6 *uint + Address4 *netip.Addr + Address6 *netip.Addr + Anchor bool + CountryCode string + Description string + FirstConnected *uniTime + ID uint + LastConnected *uniTime + Location Geolocation + Prefix4 *netip.Prefix + Prefix6 *netip.Prefix + Public bool + Status ProbeStatus + StatusSince uniTime + Tags []Tag + TotalUptime uint + Type string + func GetProbe(verbose bool, id uint) (*Probe, error) + func (probe *Probe) LongString() string + func (probe *Probe) ShortString() string + type ProbeFilter struct + func NewProbeFilter() *ProbeFilter + func (filter *ProbeFilter) FilterASN(n uint) + func (filter *ProbeFilter) FilterASN4(n uint) + func (filter *ProbeFilter) FilterASN4in(list []uint) + func (filter *ProbeFilter) FilterASN6(n uint) + func (filter *ProbeFilter) FilterASN6in(list []uint) + func (filter *ProbeFilter) FilterAnchor(yesno bool) + func (filter *ProbeFilter) FilterCountry(cc string) + func (filter *ProbeFilter) FilterID(id uint) + func (filter *ProbeFilter) FilterIDGt(n uint) + func (filter *ProbeFilter) FilterIDGte(n uint) + func (filter *ProbeFilter) FilterIDLt(n uint) + func (filter *ProbeFilter) FilterIDLte(n uint) + func (filter *ProbeFilter) FilterIDin(list []uint) + func (filter *ProbeFilter) FilterLatitudeGt(f float64) + func (filter *ProbeFilter) FilterLatitudeGte(f float64) + func (filter *ProbeFilter) FilterLatitudeLt(f float64) + func (filter *ProbeFilter) FilterLatitudeLte(f float64) + func (filter *ProbeFilter) FilterLongitudeGt(f float64) + func (filter *ProbeFilter) FilterLongitudeGte(f float64) + func (filter *ProbeFilter) FilterLongitudeLt(f float64) + func (filter *ProbeFilter) FilterLongitudeLte(f float64) + func (filter *ProbeFilter) FilterPrefixV4(prefix netip.Prefix) + func (filter *ProbeFilter) FilterPrefixV6(prefix netip.Prefix) + func (filter *ProbeFilter) FilterPublic(yesno bool) + func (filter *ProbeFilter) FilterRadius(lat, lon, radius float64) + func (filter *ProbeFilter) FilterStatus(n uint) + func (filter *ProbeFilter) FilterTags(tags []string) + func (filter *ProbeFilter) GetProbeCount() (count uint, err error) + func (filter *ProbeFilter) GetProbes(probes chan AsyncProbeResult) + func (filter *ProbeFilter) Limit(limit uint) + func (filter *ProbeFilter) Sort(by string) + func (filter *ProbeFilter) Verbose(verbose bool) + type ProbeStatus struct + ID uint + Name string + Since *uniTime + type ResultsFilter struct + func NewResultsFilter() ResultsFilter + func (filter *ResultsFilter) FilterAnchors() + func (filter *ResultsFilter) FilterFile(filename string) + func (filter *ResultsFilter) FilterID(id uint) + func (filter *ResultsFilter) FilterLatest() + func (filter *ResultsFilter) FilterProbeIDs(list []uint) + func (filter *ResultsFilter) FilterPublicProbes() + func (filter *ResultsFilter) FilterStart(t time.Time) + func (filter *ResultsFilter) FilterStop(t time.Time) + func (filter *ResultsFilter) GetResults(verbose bool, results chan result.AsyncResult) + func (filter *ResultsFilter) Limit(max uint) + func (filter *ResultsFilter) Save(file *os.File) + func (filter *ResultsFilter) SaveAll(all bool) + func (filter *ResultsFilter) Stream(useStream bool) + type StatusCheckFilter struct + func NewStatusCheckFilter() StatusCheckFilter + func (filter *StatusCheckFilter) GetAllRTTs(showall bool) + func (filter *StatusCheckFilter) MsmID(id uint) + func (filter *StatusCheckFilter) StatusCheck(verbose bool, statuses chan AsyncStatusCheckResult) + type StatusCheckProbe struct + Alert bool + AllRTTs *[]float64 + Last float64 + LastPacketLoss float64 + Source string + type StatusCheckResult struct + GloblaAlert bool + Probes map[uint]StatusCheckProbe + TotalAlerts uint + func (sc *StatusCheckResult) LongString() string + func (sc *StatusCheckResult) ShortString() string + type Tag struct + Name string + Slug string + type TlsOptions struct + Port uint + Sni string + type TraceOptions struct + DestinationEH uint + DontFragment bool + FirstHop uint + HopByHopEH uint + LastHop uint + PacketSize uint + Packets uint + ParisId uint + Protocol string + ResponseTimeout uint