Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadConfig ¶
type DownloadProber ¶
type DownloadProber struct {
// contains filtered or unexported fields
}
func NewDownloadProber ¶
func NewDownloadProber(cfg DownloadConfig) *DownloadProber
func (*DownloadProber) Download ¶
func (p *DownloadProber) Download(ctx context.Context, ip netip.Addr) DownloadResult
type DownloadResult ¶
type Prober ¶
type Prober struct {
// contains filtered or unexported fields
}
func (*Prober) ProbeHTTPTrace ¶
ProbeHTTPTrace probes https://<ip>/<path> with SNI/HostHeader. This is a convenience wrapper that calls probeOnce for backward compatibility.
func (*Prober) ProbeHTTPTraceMulti ¶ added in v0.2.1
ProbeHTTPTraceMulti performs multiple probes and returns the average of rounds after skipping the first N. This avoids the TCP/TLS handshake overhead in the first request and provides more stable latency measurements.
type Result ¶
type Result struct {
IP netip.Addr `json:"ip"`
OK bool `json:"ok"`
Status int `json:"status"`
Error string `json:"error,omitempty"`
ConnectMS int64 `json:"connect_ms"`
TLSMS int64 `json:"tls_ms"`
TTFBMS int64 `json:"ttfb_ms"`
TotalMS int64 `json:"total_ms"`
Trace map[string]string `json:"trace,omitempty"`
When time.Time `json:"when"`
}
Click to show internal directories.
Click to hide internal directories.