package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Oct 14, 2026
License: MPL-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package speedtest measures a peer Xray proxy using an isolated outbound-only client.
type Request struct {
PeerOutbound json.RawMessage `json:"peer_outbound"`
DownloadURL string `json:"download_url"`
UploadURL string `json:"upload_url"`
MaxBytes int64 `json:"max_bytes,omitempty"`
TimeoutSeconds int `json:"timeout_seconds,omitempty"`
}
type Result struct {
LatencyMillis []float64 `json:"request_latency_millis"`
DownloadBytes int64 `json:"download_bytes"`
UploadBytes int64 `json:"upload_bytes"`
DownloadMbps float64 `json:"download_mbps"`
UploadMbps float64 `json:"upload_mbps"`
DurationMillis int64 `json:"duration_millis"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.