Documentation
¶
Overview ¶
SPDX-License-Identifier: MIT
SPDX-License-Identifier: MIT
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option is a functional option for the runner.
func WithOutput ¶
func WithProbeTimeout ¶
func WithRateLimit ¶
func WithVerbose ¶
func WithWorkers ¶
type Options ¶
type Options struct {
Workers int
RateLimit float64
ProbeTimeout time.Duration // per-probe execution timeout (0 = no timeout)
Verbose bool
Output io.Writer // for progress output
}
Options configures the runner.
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
RateLimiter implements a token bucket rate limiter.
func NewRateLimiter ¶
func NewRateLimiter(rate float64) *RateLimiter
NewRateLimiter creates a rate limiter that allows rate requests per second.
Click to show internal directories.
Click to hide internal directories.