Source File
probe.go
Belonging Package
github.com/tmc/go-iroh/internal/netreport
package netreport// Probe identifies how a relay's latency was measured. The order matches the// Rust enum (iroh/src/net_report/probes.rs:22) so a [Probe] sorts and prints// consistently across the port.type Probe intconst (// ProbeHTTPS times an HTTPS GET of the relay's probe path.ProbeHTTPS Probe = iota// ProbeQADv4 times a QUIC Address Discovery connection over IPv4.ProbeQADv4// ProbeQADv6 times a QUIC Address Discovery connection over IPv6.ProbeQADv6)// String returns the probe name, matching the Rust Display impl.func ( Probe) () string {switch {case ProbeHTTPS:return "Https"case ProbeQADv4:return "QadIpv4"case ProbeQADv6:return "QadIpv6"default:return "Probe(?)"}}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |